Projekt

Obecné

Profil

Stáhnout (673 Bajtů) Statistiky
| Větev: | Revize:
1
# trim-right [![Build Status](https://travis-ci.org/sindresorhus/trim-right.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-right)
2

    
3
> 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
4

    
5

    
6
## Install
7

    
8
```
9
$ npm install --save trim-right
10
```
11

    
12

    
13
## Usage
14

    
15
```js
16
var trimRight = require('trim-right');
17

    
18
trimRight('  unicorn  ');
19
//=> '  unicorn'
20
```
21

    
22

    
23
## Related
24

    
25
- [`trim-left`](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
26

    
27

    
28
## License
29

    
30
MIT © [Sindre Sorhus](http://sindresorhus.com)
(4-4/4)