tiny-conf

1.1.0 • Public • Published

tiny-conf

const conf = require('tiny-conf');

API

.get(path): {*}
returns the value stored at that path or undefined

.set(path, value): {boolean}
stores value at path location
returns true on success, false otherwise

.merge(path, value): {boolean}
merges value at path location
returns true on success, false otherwise

.clear(): undefined
removes everything from the store

.print(): undefined
outputs the current store content using console.dir()

Acknowledgements

In-memory store type is from indexzero's nconf module.

Package Sidebar

Install

npm i tiny-conf

Weekly Downloads

10

Version

1.1.0

License

MIT

Last publish

Collaborators

  • leiko