trim-off-newlines

    1.0.3 • Public • Published

    trim-off-newlines Build Status

    Similar to String#trim() but removes only newlines

    Install

    $ npm install --save trim-off-newlines
    

    Usage

    var trimOffNewlines = require('trim-off-newlines');
    
    trimOffNewlines('\n\nunicorns\n\n');
    //=> 'unicorns'

    Related

    • trim-left - Similar to String#trim() but removes only whitespace on the left
    • trim-right - Similar to String#trim() but removes only whitespace on the right

    License

    MIT © Steve Mao

    Install

    npm i trim-off-newlines

    DownloadsWeekly Downloads

    1,487,999

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.07 kB

    Total Files

    4

    Last publish

    Collaborators

    • stevemao
    • trott