slugster
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

slugster

A complete slugifier with no dependencies for Node.js and the Browser that will also handle emoji and/or international (non-standard) characters.

Installation

npm i slugster

Usage

const slugster = require('slugster');

// or es6 import:

import slugster from 'slugster';
slugster('Anyone & Everyone'); // => anyone-and-everyone

slugster('❤️ Étretat & Ille-sur-Têt!') // => etretat-and-ille-sur-tet

If you want a different separator, just pass it as a second parameter:

slugster('Anyone & Everyone', '_'); // => anyone_and_everyone

slugster('Anyone & Everyone', '***'); // => anyone***and***everyone

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    11
  • 1.1.0
    0
  • 1.0.2
    0
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i slugster

Weekly Downloads

6

Version

1.1.1

License

MIT

Unpacked Size

3.99 kB

Total Files

5

Last publish

Collaborators

  • dorumrr