Need private packages and team management tools?Check out npm Teams »

trim-right

1.0.1 • Public • Published

trim-right Build Status

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

Install

$ npm install --save trim-right

Usage

var trimRight = require('trim-right');
 
trimRight('  unicorn  ');
//=> '  unicorn'

Related

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

License

MIT © Sindre Sorhus

Install

npm i trim-right

DownloadsWeekly Downloads

5,713,294

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar