unbreaker
v1.0.8
Published
Convert line breakable strings to non-breakable character sequence
Downloads
8
Maintainers
Readme
unbreaker
Create line unbreakable character sequence from breakable strings.
Features
- [x] Convert breakable character sequence to unbreakable
- [x] Don't join explicit newline
- [x] Don't destroy combining character sequence like this "ఠ్ఠ"
- [x] Don't destroy emoji character
- [x] 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 '(*´ω`*)' あいうえお
(*´ω`*)
あいうえお