New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-slug

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-slug - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

12

package.json
{
"name": "gatsby-plugin-slug",
"version": "1.1.0",
"version": "1.1.1",
"description": "Add slug field to MarkdownRemark and Mdx nodes",

@@ -24,7 +24,7 @@ "repository": "https://github.com/cedricdelpoux/gatsby-plugin-slug",

"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"husky": "^4.2.1",
"lint-staged": "^10.0.7",
"prettier": "1.19.1"
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"prettier": "2.1.2"
},

@@ -31,0 +31,0 @@ "scripts": {

@@ -1,7 +0,15 @@

# gatsby-plugin-slug
<div align="center">
<h1>gatsby-plugin-slug</h1>
Add slug field to `MarkdownRemark` and `Mdx` nodes
[![Npm version][badge-npm]][npm]
[![Npm downloads][badge-npm-dl]][npm]
[![MIT license][badge-licence]](./LICENCE.md)
[![PRs welcome][badge-prs-welcome]](#contributing)
[![npm package][npm-badge]][npm]
</div>
---
Add slug field to `MarkdownRemark` and `Mdx` nodes.
By default gatsby generate url by following directories structure.

@@ -21,4 +29,2 @@

[![gatsby-plugin-slug](https://nodei.co/npm/gatsby-plugin-slug.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/gatsby-plugin-slug/)
You can download `gatsby-plugin-slug` from the NPM registry via the

@@ -71,5 +77,5 @@ `npm` or `yarn` commands

`
).then(result => {
).then((result) => {
const posts = result.data.posts.nodes
posts.forEach(post => {
posts.forEach((post) => {
createPage({

@@ -131,4 +137,7 @@ path: post.fields.slug,

[npm-badge]: https://img.shields.io/npm/v/gatsby-plugin-slug.svg?style=flat-square
[badge-npm]: https://img.shields.io/npm/v/gatsby-plugin-slug.svg?style=flat-square
[badge-npm-dl]: https://img.shields.io/npm/dt/gatsby-plugin-slug.svg?style=flat-square
[badge-licence]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
[badge-prs-welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[npm]: https://www.npmjs.org/package/gatsby-plugin-slug
[github-issue]: https://github.com/xuopled/gatsby-plugin-slug/issues/new
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