It's a fork from lzrski/config-object.
The goal is to put all reusable data manipulation logic here and use it internally in config-object.
npm install data-object
Here's what you can do now:
Data = require 'data-object'data = new Dataa:b: 1c:d: 2e: 'Elf'f: 'Ferret'data.get 'a/c/e' # Elfdata.get 'a/c' # d: 2, e: Elfdata.bonus = 200data.get 'bonus' # 200
ATM only most basic
get works. More functionality is to come, including:
- No dependencies (esp. lodash)
- Drop-in replacement for most of config-object code
I will successively move config-object's features here. See pending test cases for more todo items.