codeql-action/node_modules/trim-off-newlines
2022-01-29 01:33:45 +00:00
..
index.js Update checked-in dependencies 2022-01-29 01:33:45 +00:00
license replace jest with ava 2020-05-13 11:13:27 +01:00
package.json Update checked-in dependencies 2022-01-29 01:33:45 +00: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