detect-newline
Advanced tools
Comparing version 4.0.0 to 4.0.1
/** | ||
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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3957