Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trim-newlines

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trim-newlines - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

2

index.js

@@ -9,3 +9,3 @@ export default function trimNewlines(string) {

while (end > 0 && (string[end - 1] === '\r' || string[end - 1] === '\n')) {
while (end > start && (string[end - 1] === '\r' || string[end - 1] === '\n')) {
end--;

@@ -12,0 +12,0 @@ }

{
"name": "trim-newlines",
"version": "4.0.1",
"version": "4.0.2",
"description": "Trim newlines from the start and/or end of a string",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc