0.0.2 • Published 7 years ago
cerealize v0.0.2
cerealize
Serialize CLI arguments.
Install
npm:
$ npm install --save cerealize
yarn:
$ yarn add cerealize
Usage
import toString from 'cerealize';
import { dashes, eq } from 'cerealize/flags';
console.log(toString(dashes, { format: 'markdown' }, './file.js'));
// '--format markdown ./file.js'
console.log(
toString({ format: eq, c: dash }, { format: 'markdown', c: 1 }, './file.js'),
);
// '--format=markdown -c 1 ./file.js'