19ba3ac709ea42304e35a98f52d86fa757e577c22835965108416b2334b6107f88d55a6ed981e82d82dd08828a218a5fef3133b500e338ee32de5bfb13b2ec 673 B

123456789101112131415161718192021222324252627282930
  1. # trim-right [![Build Status](https://travis-ci.org/sindresorhus/trim-right.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-right)
  2. > Similar to [`String#trim()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim) but removes only whitespace on the right
  3. ## Install
  4. ```
  5. $ npm install --save trim-right
  6. ```
  7. ## Usage
  8. ```js
  9. var trimRight = require('trim-right');
  10. trimRight(' unicorn ');
  11. //=> ' unicorn'
  12. ```
  13. ## Related
  14. - [`trim-left`](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
  15. ## License
  16. MIT © [Sindre Sorhus](http://sindresorhus.com)