Parameterize string
Replace any special characters in a string with an ASCII approximation. Usefull for creating URL-friendly slugs.
This package is very similar to the ActiveSupport::Inflector parameterize method in Ruby on Rails.
Installation
npm install --save parameterize-string
Usage
Default options
separator: '-' preserveCase: false
Example
; ; // bjork-gudmundsdottir; // Bjork-Gudmundsdottir; // bjork_gudmundsdottir
Test
npm test