utils-nestjs
v0.1.1
Published
Utils for nestjs
Readme
Utils-nestjs
A set of small utilities for nestjs.
Installation
To install and set up the library, run:
$ npm install utils-nestjs Or if you prefer using Yarn:
$ yarn add utils-nestjsAPI
mLog
mLog.log({ source: getPathToCurrentFile(), handler: this.users.name, message: "request for get users list", path: "/users", method: httpMethods.GET});Supported options and result fields for the mLog hook are listed below.
Options
sources
| Type | Default value | |--------------|---------------| | string, null | null |
url
| Type | Default value | |---------|---------------| | string | "" |
handler
| Type | Default value | |---------|---------------| | string | "" |
message
| Type | Default value | |---------|---------------| | string | "" |
method
| Type | Default value | |------------------|---------------| | httpMethods enum | "" |
path
| Type | Default value | |--------|---------------| | string | "" |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Add your changes:
git add . - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :sunglasses:
Authors
- SashokNaSteroidah - JohnDoe
