split-lines
Advanced tools
Comparing version 2.0.0 to 2.1.0
'use strict'; | ||
module.exports = (string, options) => { | ||
@@ -3,0 +4,0 @@ options = Object.assign({ |
{ | ||
"name": "split-lines", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Split lines into an array of lines", | ||
"license": "MIT", | ||
"repository": "sindresorhus/split-lines", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
@@ -16,6 +17,7 @@ "engines": { | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -38,5 +40,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
"ava": "^2.4.0", | ||
"tsd": "^0.14.0", | ||
"xo": "^0.38.2" | ||
} | ||
} |
@@ -1,6 +0,5 @@ | ||
# split-lines [![Build Status](https://travis-ci.org/sindresorhus/split-lines.svg?branch=master)](https://travis-ci.org/sindresorhus/split-lines) | ||
# split-lines | ||
> Split lines into an array of lines | ||
## Install | ||
@@ -12,3 +11,2 @@ | ||
## Usage | ||
@@ -28,3 +26,3 @@ | ||
### splitLines(input, [options]) | ||
### splitLines(input, options?) | ||
@@ -39,14 +37,9 @@ #### input | ||
Type: `Object` | ||
Type: `object` | ||
##### preserveNewlines | ||
Type: `boolean`<br> | ||
Type: `boolean`\ | ||
Default: `false` | ||
Preserve the line separator at the end of every line, except the last line, which will never contain one. | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
Sorry, the diff of this file is not supported yet
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
3644
5
41
3
43