Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
metrics-stripe-subscriptions
Advanced tools
A Stripe subscriptions plugin for segmentio/metrics.
Use this plugin to visualize Stripe subscriptions over time.
$ npm install metrics-stripe-subscriptions
Here's a full example of a Geckoboard dashboard showing Stripe subscription metrics:
var Metrics = require('metrics');
var subscriptions = require('metrics-stripe-subscriptions');
var geckoboard = require('geckoboard')('api-key');
new Metrics()
.every('10m', subscriptions('stripe-key'))
.use(function (metrics) {
metrics.on('stripe subscriptions today', geckboard('widget-id').number);
});
You can further filter
customers using stripe-subscriptions filters:
new Metrics()
.every('10m', subscriptions('stripe-key', { filter: filter }))
function filter (customer) {
return customer.id !== 'cus_8239d2jd9j'; // filter enterprise customer X
}
The metrics exposed by this plugin are:
stripe subscriptions
- the number of subscriptionsstripe subscriptions mrr
- the monthly recurring revenue amount representing the subscriptionsand are calculated for the last 30 days, last 52 weeks, and last 10 years.
MIT
FAQs
Stripe subscriptions plugin for segmentio/metrics
We found that metrics-stripe-subscriptions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.