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
    

    Install

    npm i slugster

    DownloadsWeekly Downloads

    37

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    3.99 kB

    Total Files

    5

    Last publish

    Collaborators

    • dorumrr