Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rehype-slug

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-slug - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

17

package.json
{
"name": "rehype-slug",
"version": "1.0.0",
"version": "2.0.0",
"description": "Add id attributes to headings",

@@ -29,8 +29,8 @@ "license": "MIT",

"devDependencies": {
"browserify": "^13.0.0",
"browserify": "^14.1.0",
"esmangle": "^1.0.0",
"nyc": "^8.3.1",
"rehype": "^3.0.0",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"nyc": "^10.0.0",
"rehype": "^4.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^2.0.0",
"tape": "^4.0.0",

@@ -40,3 +40,3 @@ "xo": "^0.17.0"

"scripts": {
"build-md": "remark . --quiet --frail",
"build-md": "remark . -qfo",
"build-bundle": "browserify index.js --bare -s rehypeSlug > rehype-slug.js",

@@ -63,5 +63,4 @@ "build-mangle": "esmangle rehype-slug.js > rehype-slug.min.js",

"remarkConfig": {
"output": true,
"presets": "wooorm"
"plugins": ["preset-wooorm"]
}
}

@@ -34,6 +34,9 @@ # rehype-slug [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]

rehype().use(slug).process(doc, {fragment: true}, function (err, file) {
if (err) throw err;
console.log(String(file));
});
rehype()
.data('settings', {fragment: true})
.use(slug)
.process(doc, function (err, file) {
if (err) throw err;
console.log(String(file));
});
```

@@ -40,0 +43,0 @@

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