Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-source-npmsio

version license

Source plugin for pulling data into Gatsby from npms.io.

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-npmsio`,
      options: {
        name: 'author',
        qualifier: {
          author: `malcolmkee`
        }
      }
    }
    // ... other plugins
  ]
};

And then you can query via GraphQL with the type allNpmsIo<Name> where <Name> is the name you provided as plugin options.

Please refer to npms.io docs for the supported qualifier.

© 2023 Gatsby, Inc.