slug-web-friendly

0.2.0 • Public • Published

Slug-web-friendly

npm i slug-web-friendly
import slugify from 'slug-web-friendly';

slugify('some string'); // some-string

![npm-version] ![coveralls-status]

"Simple Slugify"

is a JavaScript library that allows you to convert any string into a URL-friendly format, by replacing spaces with a chosen separator character. For example, you can turn "some string" into "some-string". The library is written in ES2015 JavaScript and has no dependencies.

The library can also convert foreign symbols into their English equivalents, based on a predefined mapping of characters. Additionally, it can work in the browser as well as with AMD/CommonJS module loaders.

Package Sidebar

Install

npm i slug-web-friendly

Weekly Downloads

1

Version

0.2.0

License

NONE

Unpacked Size

9.09 kB

Total Files

7

Last publish

Collaborators

  • mvsm