dedash

1.0.2 • Public • Published

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: '‐'

learn more about dashes here

Install

With npm installed, run

$ npm install dedash

License

MIT

/dedash/

    Package Sidebar

    Install

    npm i dedash

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • jekrb