trim-newlines

Trim newlines from the start and/or end of a string

MIT License

Downloads
54.9M
Stars
48
Committers
5

Bot releases are visible (Hide)

trim-newlines - Latest Release

Published by sindresorhus over 1 year ago

Breaking

Improvements

  • Improve the TypeScript types (#12) 02dae42

https://github.com/sindresorhus/trim-newlines/compare/v4.0.2...v5.0.0

trim-newlines -

Published by sindresorhus over 3 years ago

trim-newlines -

Published by sindresorhus over 3 years ago

  • Fix ReDoS vulnerability for the .end() method 25246c6

Also fixed for v3 in 3.0.1.

https://github.com/sindresorhus/trim-newlines/compare/v4.0.0...v4.0.1

trim-newlines -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12 c00fe4f
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/trim-newlines/compare/v3.0.0...v4.0.0

trim-newlines -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#1) 75db891

Enhancements:

  • Add TypeScript definition (#1) 75db891

https://github.com/sindresorhus/trim-newlines/compare/v2.0.0...v3.0.0