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

detect-newline

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-newline - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

index.d.ts
/**
Detect the dominant newline character of a string.
@returns The detected newline or `undefined` when no newline character is found.
@returns The detected newline or `undefined` when no newline character is found or `\n` when no dominant newline is present.

@@ -19,3 +19,3 @@ @example

@returns The detected newline or `\n` when no newline character is found or the input is not a string.
@returns The detected newline or `\n` when no newline character is found, no dominant newline is present, or the input is not a string.

@@ -22,0 +22,0 @@ @example

{
"name": "detect-newline",
"version": "4.0.0",
"version": "4.0.1",
"description": "Detect the dominant newline character of a string",

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

@@ -24,7 +24,7 @@ # detect-newline

Returns the detected newline or `undefined` when no newline character is found.
Returns the detected newline or `undefined` when no newline character is found or `\n` when no dominant newline is present.
### detectNewlineGraceful(unknown)
Returns the detected newline or `\n` when no newline character is found or the input is not a string.
Returns the detected newline or `\n` when no newline character is found, no dominant newline is present, or the input is not a string.

@@ -31,0 +31,0 @@ ## Related

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