Skip to content

pantojs/panto-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panto-options

NPM version Downloads Build Status Dependency status Dev Dependency status

Options object for panto.

const PantoOptions = require('panto-options');

const options = new PantoOptions({cwd: '.'});

options.extend({cwd: 'cwd', list: 'all'});

options.set('current', 'sub');

options.get('list')// 'all'
options.get('absense') // undefined
options.get('absense', 'foo') // 'foo'
options.get() // {cwd: 'cwd', list: 'all', current: 'sub'}

options.rm('cwd') //true

About

Options object for panto

Resources

License

Stars

Watchers

Forks

Packages

No packages published