tiny-conf-plugin-file
Will store the content of filepath
JSON to the given tiny-conf
store.
Enhances the .save()
method to store the current in-memory content to the
given file.
Usage
const path = ;const conf = ; const filepath = path;conf filepath;
Example
Config file ./path/to/config.json
:
Application ./app.js
:
const path = ;const conf = ;const filepath = path; conf filepath; conf; // 'bar'conf; // 42conf; // ['Hello', 'World'] conf; conf ;