Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.53 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.53 KB

unbreaker

NPM

Build Status Coverage Status License: MIT

Create line unbreakable character sequence from breakable strings.

Features

  • Convert breakable character sequence to unbreakable
  • Don't join explicit newline
  • Don't destroy combining character sequence like this "ఠ్ఠ"
  • Don't destroy emoji character
  • Support CLI
  • Support reverting to breakable from unbreakable

Install

npm install unbreaker

Example

var unbreaker = require('unbreaker');
[
  'This is not breakable.',
  'ヽ(=´▽`=)ノ',
  '•̀.̫•́✨'
].forEach(function(breakable) {
  console.log( unbreaker(breakable) )
});

You can copy and paste the output to TextEdit or html, etc...

CLI

You can use cli.

$ unbreaker '(*´ω`*)' あいうえお
(*⁠´ω⁠`⁠*)
あ⁠い⁠う⁠え⁠お

Screenshot

unbreaker-demo

References