Libraries, constants and functions that are standard to MTCC and that can be used across different applications to achieve consistency.
npm i https://github.com/MTCC-Plc/standards#{hash of the commit}
Unlike a regular install from the npm registry, this package will be fetched from GitHub.
In order to pin to a specific version, the hash of the commit should be passed at the end of the url. If unsure which commit to use, pick the latest one. For example:
npm i https://github.com/MTCC-Plc/standards#cb32233
Either the short or long hash are fine.
Nestjs libraries can be imported. Check the library readmes for details.
- Herald - Integration with the herald api.
- Cluster - Clustering a Nestjs app.
- Standard Logger - Standard logger for a Nestjs app.
standards-core
is a separate repo for splitting functionality
of standards
that do not have external dependencies.
standard-core
is a subset of standards
, so both packages are not required.
The idea is to use standards-core
in front-end applications and standards
in backend applications.
See documentation for standards-core