slugify
npmv1.6.9TypeScriptSlugifies a String
Safe to adopt
Yes — slugify scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 161 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 161 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 16 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding slugify to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=8.0.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the slugify README.
var slugify = require('slugify')
slugify('some string') // some-string
// if you prefer something other than '-' as separator
slugify('some string', '_') // some_stringslugify vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| slugifythis page | 0 | 3 | MIT | 5 months ago |
| tr46 | 192.6M | 1 | MIT | 1 day ago |
| @jridgewell/resolve-uri | 166.3M | 1 | MIT | 1 day ago |
| punycode | 148.9M | 2 | MIT | 1 day ago |
| encodeurl | 133.6M | 5 | MIT | 1 day ago |
| open | 130.4M | 4 | MIT | 1 day ago |
Dependencies
Declared by slugify v1.6.9. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (4)
Used by
Popular packages that depend on slugify.
Relationship graph
Dependencies (left) and dependents (right) of slugify.
Frequently installed together
The Expo SDK
Expo Router is a file-based router for React Native and web applications.
A module for reading, writing, and manipulating JSON files
The semantic version parser used by npm.
the most correct and second fastest glob implementation in JavaScript
Get and typecast environment variables.
Reusable require and Node resolution utilities library for Expo
Lightweight debugging utility for Node.js and the browser
A library for Expo config plugins
Mac OS X Plist parser/builder for Node.js and browsers
TypeScript definitions for debug
TypeScript-first schema declaration and validation library with static type inference
Release history
2 releases in the last two years, typically about 27 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.6.9latest | 5 months ago | 16 KB | MIT |
| 1.6.8 | 6 months ago | 16 KB | MIT |
| 1.6.6 | 3 years ago | 20 KB | MIT |
| 1.6.5 | 4 years ago | 15 KB | MIT |
| 1.6.4 | 4 years ago | 15 KB | MIT |
| 1.6.3 | 4 years ago | 15 KB | MIT |
| 1.6.2 | 4 years ago | 15 KB | MIT |
| 1.6.1 | 5 years ago | 15 KB | MIT |
| 1.6.0 | 5 years ago | 14 KB | MIT |
| 1.5.3 | 5 years ago | 13 KB | MIT |
| 1.5.2 | 5 years ago | 14 KB | MIT |
| 1.5.1 | 5 years ago | 14 KB | MIT |
| 1.5.0 | 5 years ago | 13 KB | MIT |
| 1.4.7 | 5 years ago | 13 KB | MIT |
| 1.4.6 | 5 years ago | 13 KB | MIT |
Overview
slugify is an npm package that slugifies a String. It has 3 known dependents in the graph. The latest version is 1.6.9, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need slugifies a String and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use slugify?
Yes — slugify scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 161 days ago. 2 releases in the last 2 years.
How do I install slugify?
Run `npm install slugify` to add slugify to your npm project.
What license is slugify released under?
slugify is distributed under the MIT license.
How popular is slugify?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on slugify.
Is slugify still maintained?
The most recent release of slugify (v1.6.9) was published 5 months ago.
Does slugify run install scripts?
No. slugify does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.