@dot-store/argv
v2.3.0
Published
Parse CLI arguments with dot-store
Downloads
11
Readme
@dot-store/argv
Parse CLI arguments with dot-store.

Create store
import createStore from "dot-store"
import argv from "@dot-store/argv"
const store = argv(createStore())Parse argv
Calling with arguments hello -w:
await store.argv("options", process.argv.slice(2), {
alias: { world: ["w"] },
})
store.get("options")
// {
// _: ["hello"],
// w: true,
// world: true,
// }