@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
45 lines (36 loc) • 1.81 kB
Markdown
## @naturalcycles/nodejs-lib
> Standard library for Node.js
[](https://www.npmjs.com/package/@naturalcycles/nodejs-lib)
[](https://packagephobia.now.sh/result?p=@naturalcycles/nodejs-lib)
[](https://packagephobia.now.sh/result?p=@naturalcycles/nodejs-lib)
[](https://circleci.com/gh/NaturalCycles/nodejs-lib)
[](https://codeclimate.com/github/NaturalCycles/nodejs-lib/maintainability)
[](https://codeclimate.com/github/NaturalCycles/nodejs-lib/test_coverage)
[](https://github.com/prettier/prettier)
# 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](./doc/secrets.md)
# Exports
- `/` root
- `/bin` cli
- yargs
- globby
- `/script`
- exports `runScript` lightweight function (0 deps)
- `/exec`
- execa
- `/colors`
- only chalk
# Packaging
- `engines.node`: Latest Node.js LTS
- `main: dist/index.js`: commonjs, es2019
- `types: dist/index.d.ts`: typescript types
- `/src` folder with source `*.ts` files included