Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -6,7 +6,7 @@
## Install
```
$ npm install --save detect-newline
$ npm install detect-newline
```
@@ -22,13 +22,13 @@ detectNewline('foo\nbar\nbaz\r\n');
## API
### detectNewline(input)
### detectNewline(string)
Returns detected newline or `null` when no newline character is found.
Returns the detected newline or `undefined` when no newline character is found.
### detectNewline.graceful(input)
### detectNewline.graceful(unknown)
Returns detected newline or `\n` when no newline character is found.
Returns the detected newline or `\n` when no newline character is found or the input is not a string.
## Related
@@ -39,4 +39,4 @@ Returns detected newline or `\n` when no newline character is found.
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](https://sindresorhus.com)