panto-options

0.1.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    5
  • 0.1.1
    2
  • 0.1.0
    1

Package Sidebar

Install

npm i panto-options

Weekly Downloads

5

Version

0.1.2

License

Apache-2.0

Last publish

Collaborators

  • yinyongcom666