@boringcodes/utils
v0.5.3
Published
Boring Utilities
Downloads
23
Readme
About
This package implements a number of common Boring Utilities
.
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 10.0 or higher is required.
Installation is done using the
yarn add
command:
$ yarn add @boringcodes/utils
Features
The following modules are included:
- [x] Node env detector
- [x] Custom logger
- [x] Custom errors classes
- [x] Error handler
- [x] Express middleware
Usage
Then run the build command
yarn build
Directories
.
├── .github/workflows
│ ├── create-github-release.yml
│ ├── main.yml
│ ├── publish-npm.yml
├── dist (generated after building)
├── src
│ ├── errorHandler.ts
│ ├── error.ts
│ ├── express.ts
│ ├── index.ts
│ ├── logger.ts
├── .gitignore
├── .hustkyrc
├── .prettierrc.js
├── CHANGELOG.md
├── LICENSE
├── package.json
├── README.md
├── rollup.config.js
├── tsconfig.json
├── tslint.json
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.