aerie

0.4.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i aerie

Weekly Downloads

1

Version

0.4.2

License

GPL-3.0

Last publish

Collaborators

  • fingerskier