url-slug
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"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) |
214
21153
8