Updating NPM dependencies
This commit is contained in:
12
node_modules/detect-newline/readme.md
generated
vendored
12
node_modules/detect-newline/readme.md
generated
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user