panto-options

Options object for panto

Usage no npm install needed!

<script type="module">
  import pantoOptions from 'https://cdn.skypack.dev/panto-options';
</script>

README

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