Have ideas to improve npm?Join in the discussion! »

    trim-right

    2.0.0 • Public • Published

    trim-right

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

    Install

    $ npm install trim-right
    

    Usage

    import trimRight from 'trim-right';
    
    trimRight('  unicorn  ');
    //=> '  unicorn'

    Related

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

    Get professional support for this package with a Tidelift subscription
    Tidelift helps make open source sustainable for maintainers while giving companies
    assurances about security, maintenance, and licensing for their dependencies.

    Install

    npm i trim-right

    DownloadsWeekly Downloads

    4,107,381

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.03 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar