Published June 30, 2020 | Version 1.0
Dataset Open

NPM Code Snippets and Package Information

Authors/Creators

Description

Contains two JSON files, snippets and package info.

The snippets file contains code snippets extracted from npm package readme files, as well as descriptions. The code snippets were extracted by looking for markdown code fences. For code highlighting, some fences contain language information - all non-js code snippets were excluded. Code snippets that only contained a javascript object were also excluded, as these were often snippets showing the results of some functionality, or settings.

Descriptions were extracted, in summary, by looking for code above the snippet.

Package info comes from Libraries.io, containing only packages that have code snippets. This includes repository information like number of forks, stars, etc.

The original npm readme files dataset and npm package info datasets are also available for download:

https://doi.org/10.5281/zenodo.3898749
https://doi.org/10.5281/zenodo.3836540

Files

ncqData.zip

Files (167.9 MB)

Name Size Download all
md5:c0cc4ef0a46a1e278d9221acd84b9812
167.9 MB Preview Download