package
Dead simple storage interface
npm install yamGitHub-flavored package documentation.
Across all versions, last 30 days.
942,879 in 30 days
Runtime metadata.
Tagged topics.
Dead simple lazy storage interface, useful to store cli or project settings. The file being parsed is expected in valid JSON format that can include comments.
var Yam = require('yam');
//looks for a .test file in the current directory as well as your home directory
var yam = new Yam('test');
//customize where the file is located
var yam = new Yam('test', {
primary: 'path/to/primary/location',
secondary: 'path/to/secondary/location'
});.test file example:
{
//comments are valid
'foo': 'bar'
}yam.get('foo'); // => 'bar'yam.getAll();stefanpenner
stefan.penner@gmail.com
Estimated unpacked size across 6 packages.
182.7 kB
Includes dependencies.