Files
codeql-action/node_modules/trim-off-newlines
2021-10-25 08:56:16 -07:00
..
2021-10-25 08:56:16 -07:00
2020-05-13 11:13:27 +01:00
2021-10-25 08:56:16 -07:00
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