UNPKG

sammich.js

Version:

Too many JavaScript files? Put 'em in a sammich.

25 lines (22 loc) 439 B
const { parseArgs } = require("node:util"); const options = { 'verbose': { type: 'boolean', short: 'c', }, 'output': { type: 'string', short: 'o', } }; function parseSammichArgs() { return parseArgs( { allowNegative: true, allowPositionals: true, args: process.argv.slice(2), options, strict: true } ); }