🎀⛓ json-chain
fluent chaining for json with dot-prop access
📦 usage
yarn add json-chainnpm i json-chain --save
const JSONChain =
📘 examples
const data = eh: 'og' canada: true const chain = JSONChain
👓 reading json file
const readFileSync = const pkg = const chain = pkg // will be done automatically, is optional // also as .update // also as .delete, .remove // also as .valconst test = chainconst has = chain
✍ writing to file
- has
.toString
and.toJSON
methods for auto-stringifying when cast tostring
orJSON.stringify
👾 keep it simple
const chain = pkg