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

/panto-options/

    Package Sidebar

    Install

    npm i panto-options

    Weekly Downloads

    5

    Version

    0.1.2

    License

    Apache-2.0

    Last publish

    Collaborators

    • yinyongcom666