Skip to content

jakeburden/dedash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published