Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

strikethrough-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strikethrough-js

Manipulate strikethrough chars in Javascript


Version published
Weekly downloads
12
Maintainers
1
Weekly downloads
 
Created

StrikethroughJS

Manipulate strikethrough chars in Javascript

npm version

Install

npm install @ntltd/strikethrough-js

Usage

Remove strikethrough

var str = removeStrikethrough('1̶2̶3̶7̶8̶9̶€̶');
console.log(str);
// 123789€

Remove strikethrough chars

var str = removeStrikethroughChars('456€ 1̶2̶3̶7̶8̶9̶€̶');
console.log(str);
// 456€ 

Get strikethrough chars

var str = getStrikethroughChars('456€ (1̶2̶3̶7̶8̶9̶€̶)');
console.log(str);
// ["1̶", "2̶", "3̶", "7̶", "8̶", "9̶", "€̶"]

Get remove strikethrough chars

var str = getRemoveStrikethroughChars('456€ (1̶2̶3̶7̶8̶9̶€̶)');
console.log(str);
// ["1", "2", "3", "7", "8", "9", "€"]

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts