Socket
Socket
Sign inDemoInstall

url-slug

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

4

package.json
{
"name": "url-slug",
"version": "3.0.1",
"description": "Lightweight slug generator, RFC 3986 compliant",
"version": "3.0.2",
"description": "Slug generator with less than 1 KB and no dependencies, RFC 3986 compliant.",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "module": "lib/index.js",

# url-slug [![build status](https://img.shields.io/travis/stldo/url-slug/master)](https://travis-ci.org/stldo/url-slug) [![npm](https://img.shields.io/npm/v/url-slug)](https://www.npmjs.com/package/url-slug)
- __Less than 1kB__ minified and gzipped;
- Uses default JavaScript APIs, __no dependencies__;
- __RFC 3986__ compliant, compatible with URL hosts, paths, queries and fragments;
- Supports __custom dictionaries__ to replace characters;
- Easily __revert slugs__ with useful options.
- Easily __revert slugs__.

@@ -204,4 +205,10 @@ ## Install

### Polyfilling
This module uses `String.prototype.normalize()` to convert strings to slugs. If
you need to support old browsers (e.g. Internet Explorer), you can use a
polyfill like [unorm](https://github.com/walling/unorm).
## License
[The MIT License](./LICENSE)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc