Skip to content

boringcodes/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

83 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

utils

Boring Utilities

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:

  • Node env detector
  • Custom logger
  • Custom errors classes
  • Error handler
  • 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.

Authors

BoringCodes

License

MIT