Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

evidence-connector-npm-stats

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evidence-connector-npm-stats

This package makes npm download statistics available as an Evidence datasource.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

Evidence NPM Stats Datasource

This package makes npm download statistics available as an Evidence datasource.

Specify a package that you want download stats for and this datasource will return daily downloads.

Schema

Tables

Table NameDescription
last_dayDaily downloads for the last day
last_weekDaily downloads for the last week
last_monthDaily downloads for the last month
last_yearDaily downloads for the last year
max_rangeDaily downloads for max range (currently 550 days)

Columns

Each table has the same columns:

Column NameTypeDescription
downloadsnumberThe number of downloads for that day
daydateThe date of the downloads

Installing

  1. Install the package
npm install evidence-connector-npm-stats
  1. Add the datasource to your evidence.plugins.yaml
datasources:
  "evidence-connector-npm-stats": { }
  1. Start the development server, navigate to localhost:3000/settings and add a new datasource. You should see "npm-stats" as an option.

  2. Add the package name you want to track to the datasource settings.

Adding a package name

This template comes with vitest pre-installed. If you've used jest, vitest implements a very similar API.

Tests have been stubbed in index.spec.js, and can be run with npm run test

Typescript has also been included with a basic configuration, and your types can be checked with npm run check

Keywords

FAQs

Package last updated on 18 Jan 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc