2.0.0 • Published 1 year ago
hackparse v2.0.0
HackParse -- An Argv Parser
Parse command line parameters to a more readable JSON format.
Example:
parse = require("hackparse",['sample'])
console.log(parse(process.argv.slice(2)))
You can add Boolean parameters to the array, so you can use them anywhere without worrying about being parsed to non-Boolean values.
The above example --sample val
will be parsed as { _: ['val'], help: true }