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

split-lines

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

split-lines - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

index.d.ts

1

index.js
'use strict';
module.exports = (string, options) => {

@@ -3,0 +4,0 @@ options = Object.assign({

15

package.json
{
"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

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