codeql-action/node_modules/trim-off-newlines
2020-06-18 16:31:13 +02:00
..
index.js replace jest with ava 2020-05-13 11:13:27 +01:00
license replace jest with ava 2020-05-13 11:13:27 +01:00
package.json update @actions/tool-cache, install semver, nock 2020-06-18 16:31:13 +02:00
readme.md replace jest with ava 2020-05-13 11:13:27 +01:00

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