🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-source-wikipedia

Package Overview
Dependencies
Maintainers
0
Versions
262
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-wikipedia

Gatsby source plugin for pulling articles from Wikipedia

5.14.0
latest
Source
npm
Version published
Weekly downloads
99
-36.13%
Maintainers
0
Weekly downloads
 
Created
Source

gatsby-source-wikipedia

Source plugin for pulling articles from wikipedia.

Demo

https://guess-gatsby-wikipedia-demo.firebaseapp.com

Install

npm install gatsby-source-wikipedia

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-source-wikipedia",
      options: {
        // For each query, the plugin will go to Wikipedia's API and search for the query
        // and fetch the top articles to the specified limit.
        queries: [
          {
            query: `progressive web app`,
            limit: 5,
          },
          {
            query: `cheese`,
            limit: 10,
          },
          {
            query: `developers`,
            limit: 10,
          },
        ],
      },
    },
  ],
}

Keywords

gatsby

FAQs

Package last updated on 06 Nov 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