dario-node-utils
v1.1.7
Published
This repository implements shared functionality for Dario's Node.JS based applications for the purpose of DRY (Don't repeat yourself).
Downloads
3
Readme
Dario Node.JS Utils
This repository implements shared functionality for Dario's Node.JS based applications for the purpose of DRY (Don't repeat yourself).
New commits will automatically trigger npm test
with pre-commit hook using husky
, failed tests will abort the commit until the issue is resolved.
Contents
Refer below to library specific documentation and instructions install and use.
Utils
- Shared Node.JS logger - Simple, fast and agnostic JSON logging library agnostic.
- Common metrics utility - EXPERIMENTAL - Utility for creation of common metrics.
Middlewares
- Express request middleware - Opinionated general purpose request middleware for Express.
Installation
Run in the same folder that your package.json
is located to install latest available tag:
DARIO_UTILS_LATEST_VERSION=$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags [email protected]:myDario/dario-node-utils.git '*.*.*' | tail --lines=1 | cut -d '/' -f 3) && npm install git://github.com/myDario/dario-node-utils#"$DARIO_UTILS_LATEST_VERSION" --save
Release
Releasting a new utils version can be done the following way:
npm run release
Only run when HEAD commit is stable, this will patch up the version in package.json
, commit changes and create a new tag which can be used.