tree: 9c543b38cf1551223bfe9a98c3fa8f87f7b067cf [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/trim-right/readme.md

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