</>PackageGraphPackageGraph

slugify

npmv1.6.9TypeScript

Slugifies 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

16 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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_string

slugify vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
slugifythis page03MIT5 months ago
tr46192.6M1MIT1 day ago
@jridgewell/resolve-uri166.3M1MIT1 day ago
punycode148.9M2MIT1 day ago
encodeurl133.6M5MIT1 day ago
open130.4M4MIT1 day ago

Dependencies

Declared by slugify v1.6.9. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (4)

coveralls ^3.1.0github-changes ^2.0.3mocha ^7.2.0nyc ^15.1.0

Used by

Popular packages that depend on slugify.

Relationship graph

Dependencies (left) and dependents (right) of slugify.

@expo/config@expo/config-plug…@expo/clislugify
slugify dependencies dependents

Frequently installed together

Release history

2 releases in the last two years, typically about 27 days apart.

Recent versions of slugify
VersionPublishedSizeLicense
1.6.9latest5 months ago16 KBMIT
1.6.86 months ago16 KBMIT
1.6.63 years ago20 KBMIT
1.6.54 years ago15 KBMIT
1.6.44 years ago15 KBMIT
1.6.34 years ago15 KBMIT
1.6.24 years ago15 KBMIT
1.6.15 years ago15 KBMIT
1.6.05 years ago14 KBMIT
1.5.35 years ago13 KBMIT
1.5.25 years ago14 KBMIT
1.5.15 years ago14 KBMIT
1.5.05 years ago13 KBMIT
1.4.75 years ago13 KBMIT
1.4.65 years ago13 KBMIT

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

Keywords

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.