🙃 🚩 flipflag
cli flags with aliases, from argv, env, globals, --env.flags, callbacks, preserves casing and searches original case, uppercase, lowercase
📦 usage
yarn add flipflagnpm i flipflag --save
const flags =
📘 examples
easy
const envs = const nullVal =
aliases, callbacks
const names = 'cache' // last one is the key 'o,operations,ops' const flags = names { } flipflag
defaults & types
const apps =
exports
const aliased addAliases parseAliases findAndDecorate decorate findAll searchAll val get argv minimist =
⚡ perf
takes ~1ms to search for process.env flags, 60 microseconds searching argv, 40 microseconds to search globals. see test/examples for more.