1.0.3 • Published 12 months ago

picomist v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

picomist

A barebones package for parsing option strings

> node ./index.js -i path/to/input/file.js -o path/to/output/file.js -a foo -b bar -c -d baz beep boop
// ./index.js
import { parseArguments } from "picomist";
// or
const { parseArguments } = require("picomist");

console.log(parseArguments(process.argv.split(2)));

// {
//   _: [ 'beep', 'boop' ],
//   i: 'path/to/input/file.js',
//   o: 'path/to/output/file.js',
//   a: 'foo',
//   b: 'bar',
//   c: true,
//   d: 'baz'
// }
1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago