gatsby-source-npm
v1.0.3
Published
Add readme files from npm registry to site
Downloads
84
Readme
gatsby-source-npm
This plugin uses Yarn's Algolia search to import all gatsby-related package info (any package with the gatsby-component or gatsby-plugin keyword). Check back for updates to search for other npm packages based on keyword.
Install
npm install --save gatsby-source-npm
How to use
// In your gatsby-config.js
plugins: [
resolve: `gatsby-source-npm`,
]
How to query
You can query npm nodes like the following
{
allNpmPackages{
edges{
node{
name
humanDownloadsLast30Days
readme{
childMarkdownRemark{
html
}
}
}
}
}
}