conventional-changelog-action/node_modules/trim-off-newlines
Conventional Changelog Action 93e8a7d813 chore(release): v3.0.0 2020-07-03 20:09:56 +00:00
..
index.js chore(release): v3.0.0 2020-07-03 20:09:56 +00:00
license chore(release): v3.0.0 2020-07-03 20:09:56 +00:00
package.json chore(release): v3.0.0 2020-07-03 20:09:56 +00:00
readme.md chore(release): v3.0.0 2020-07-03 20:09:56 +00:00

readme.md

trim-off-newlines Build Status

Similar to String#trim() but removes only newlines

Install

$ npm install --save trim-off-newlines

Usage

var trimOffNewlines = require('trim-off-newlines');

trimOffNewlines('\n\nunicorns\n\n');
//=> 'unicorns'
  • trim-left - Similar to String#trim() but removes only whitespace on the left
  • trim-right - Similar to String#trim() but removes only whitespace on the right

License

MIT © Steve Mao