dedash
v1.0.2
Published
removes all instances of various dashes from a string
Downloads
4
Readme
dedash
small module that removes all instances of various dashes from a string
returns a new string with all dashes removed
Usage
var dedash = require('dedash')
var str = 'hey-cool!'
console.log(dedash(str)) // 'heycool!'
types of dashes removed
- figure: '‒'
- en: '–'
- em: '—'
- horizontal bar: '―'
- swung: '⁓'
- hyphen-minus: '-'
- low line: '_'
- hypen: '‐'
Install
With npm installed, run
$ npm install dedash
License
MIT