Negotiable Paleobotanist Missions
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

url-record

1.0.0 • Public • Published

url-record

A simple, fast and lightweight slug generator. It's a JavaScript port from nopCommerce UrlRecord service.

NPM

Installation

npm install url-record --save

Usage

// get required modules
const getSeoFriendlyName = require('url-record')
 
getSeoFriendlyName('nobodY d0es_it better')
// will return -> nobody-d0es_it-better

Options

Name Type Default Description
name string - The string that will be slugified
convertNonWesternChars boolean true A value indicating whether non western chars should be converted
allowUnicodeCharsInUrls boolean false A value indicating whether Unicode chars are allowed

Contribution

Contributions and pull requests are kindly welcomed!

License

This project is licensed under the terms of the MIT license.

Install

npm i url-record

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

89.8 kB

Total Files

7

Last publish

Collaborators

  • avatar