@dittodub/melange-metrics
v1.0.36
Published
A custom metrics library for Node.js
Downloads
49
Readme
Metrics Library
This library provides metrics functionalities for recording data throughout your systems.
Installation
npm install metrics-library
Usage
import { getMetric } from 'metrics-library';
console.log(getMetric()); // Output: sample_metric_value
Running tests
npm test
Linting
npm run lint
Test server
To run the test server
npm run build
node dist/tests/manual-test-server.js
Publishing
You need to be part of the dittodub npm organization to publish the node package. https://www.npmjs.com/settings/dittodub/packages.
Then run
npm login
Then
npm run publish-package