# nodejs-lib
Standard library for Node.js
# Features
- Validation (based on Joi)
- debug (based on debug) with .warn(), .error() levels
- env.util
- zip.util
- id.util (based on nanoid)
- hash.util
- process.util (cpu, memory, etc)
- lruMemoCache (implementation of MemoCache based on lru-cache)
- SlackService
- Secrets
- kpy, del fs
# Other commands
json2env: for specified.jsonfile will create.json.shfile next to it that will "export" all values of json file as environment variables. Will also append $BASH_ENV (if defined) for CircleCI. Example:yarn json2env someFile.jsonwill createsomeFile.json.sh--prefixwill prepend all keys withprefixstring, e.g--prefix buildInfo_will output asbuildInfo_key1,buildInfo_key2, etc.--no-save-env-fileto skip saving.shfile--no-bash-envto skip adding to$BASH_ENV--no-failwill not throw error on missing input file--silent--debug
# Exports
/root/bincli- yargs
- globby
/script- exports
runScriptlightweight function (0 deps)
- exports
/exec- execa
/colors- only chalk
/fs- exports
kpy,kpySync,del,json2env
- exports
# Packaging
engines.node: Latest Node.js LTSmain: dist/index.js: commonjs, es2020types: dist/index.d.ts: typescript types/srcfolder with source*.tsfiles included