Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

countchocula

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

countchocula

Countchocula provides easy access to npm stats for a given repo on a daily basis between two periods of time. You simply pass the package name, start date, and end date. The returned result will be an array of data points that can easily be plotted on a g

latest
npmnpm
Version
1.0.4
Version published
Maintainers
2
Created
Source

Countchocula

Countchocula provides easy access to npm stats for a given repo on a daily basis between two periods of time. You simply pass the package name, start date, and end date. The returned result will be an array of data points that can easily be plotted on a graph such as a bar chart.

This is especially useful for those who contribute to many open-source projects and want to keep an eye on the stats of their projects.

Example

import Stats from '../dist';

const stats = new Stats();

const streamChatJs = async () => {
	try {
		const pkg = await stats.pkg({
			start: '2019-07-20',
			end: '2019-08-20',
			pkg: 'stream-chat',
		});

		console.log(pkg);
	} catch (error) {
		console.log(error);
	}
};

streamChatJs();

FAQs

Package last updated on 17 Dec 2019

Did you know?

Socket

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