panto-options

Options object for panto


Keywords
panto, options
License
Apache-2.0
Install
npm install panto-options@0.1.2

Documentation

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