1.1.0 • Published 7 years ago

tiny-conf v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

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.