This package implements a number of common Boring Utilities
.
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
The following modules are included:
- Node env detector
- Custom logger
- Custom errors classes
- Error handler
- Express middleware
Then run the build command
yarn build
.
├── .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
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.