shichen b6c5ecc67a init 10 months ago
..
index.js b6c5ecc67a init 10 months ago
license b6c5ecc67a init 10 months ago
package.json b6c5ecc67a init 10 months ago
readme.md b6c5ecc67a init 10 months ago

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