diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/trim-off-newlines/readme.md | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/trim-off-newlines/readme.md')
-rw-r--r-- | node_modules/trim-off-newlines/readme.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/node_modules/trim-off-newlines/readme.md b/node_modules/trim-off-newlines/readme.md new file mode 100644 index 000000000..36626d90a --- /dev/null +++ b/node_modules/trim-off-newlines/readme.md @@ -0,0 +1,31 @@ +# trim-off-newlines [](https://travis-ci.org/stevemao/trim-off-newlines) + +> Similar to [`String#trim()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim) but removes only newlines + + +## Install + +``` +$ npm install --save trim-off-newlines +``` + + +## Usage + +```js +var trimOffNewlines = require('trim-off-newlines'); + +trimOffNewlines('\n\nunicorns\n\n'); +//=> 'unicorns' +``` + + +## Related + +- [`trim-left`](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left +- [`trim-right`](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right + + +## License + +MIT © [Steve Mao](https://github.com/stevemao) |