unbreaker

    1.0.8 • Public • Published

    unbreaker

    NPM Build Status Coverage Status

    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

    Related

    Install

    npm i unbreaker

    DownloadsWeekly Downloads

    4

    Version

    1.0.8

    License

    MIT

    Last publish

    Collaborators

    • kawaz