Skip to content

Create line unbreakable character sequence from breakable strings.

License

Notifications You must be signed in to change notification settings

kawaz/unbreaker

Repository files navigation

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

About

Create line unbreakable character sequence from breakable strings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published