aerie
v0.4.2
Published
Nested JSON handler
Downloads
9
Readme
#aerie
An ultra-simple utility to handle nested JSON files.
Current usage: Setting
const aerie = require('aerie')
aerie('some.dir.file.item', 'value')
...which would result in ./some/dir/file.json being parsed, and having it's "item" property assigned "value".
Getting
const aerie = require('aerie')
aerie('some.dir.file.item')
...which will return "value" (per the previous example).
There is a CLI version of this included as cli.js
##TODO The ultimate desire is to incorporate these calls into template literal tags to create a JSON DSL. For now it roughly meets my needs as is.
Desired syntax:
const aerie = require('aerie')
aerie\`Pointless text _PUNC${some_val} and _END\`
...or something like that.