Socket
Socket
Sign inDemoInstall

tx2

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tx2

Metrics, Issues, Actions, Events reporting library


Version published
Maintainers
1
Install size
46.5 kB
Created

Readme

Source

tx2

Report Events, Metrics, Issues, Actions to PM2 and PM2.io.

const tx2 = require('tx2')

let body = { calories : 20 }
tx2.metric('burnt calories', () => body.calories)

tx2.action('lift weights', (cb) => {
  cb({ success: true })
})

Check API.md for full API doc.

Once you have created some metrics:

$ pm2 start app.js

Then run:

# Inspect primitive reported
$ pm2 show app

or go to pm2.io for web based interface + insights creation.

More

Generate documentation:

$ npm run doc

License

MIT

FAQs

Last updated on 21 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc