npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

slugificate

0.2.1

@yoshuawuyts

npmHomeRepoSnykSocket
Downloads:0
$ npm install slugificate
DailyWeeklyMonthlyYearly

slugificate

NPM version build status Test coverage

Slugify a string, removing all non-word characters and replacing them with a character. Defaults to a hypen, but any character can be used.

Installation

$ npm i --save slugificate

Overview

var slugify = require('slugificate');

var someString = 'Dogs are larger than Cats, sometimes';

var newString = slugify(someString);
//=> 'dogs-are-larger-than-cats-sometimes'

var newerString = slugify(someString, '+');
//=> 'dogs+are+larger+than+cats+sometimes'

License

MIT © Yoshua Wuyts