{"name":"split-lines","version":"0.1.0","description":"Split lines into an array of lines","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/split-lines"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["string","str","split","newline","linebreak","line-break","line","lines","lf","crlf","eol","linefeed"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/split-lines/issues"},"homepage":"https://github.com/sindresorhus/split-lines","_id":"split-lines@0.1.0","_shasum":"0b964fb76419ac1df9fd39c704e9703374633c73","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"0b964fb76419ac1df9fd39c704e9703374633c73","tarball":"http://registry-npm.ywwl.com/split-lines/download/split-lines-0.1.0.tgz","integrity":"sha512-w2z2D8nI4etad4YKwnKnwbpA5TVaT+2n7zl28+etXUexXeyi6dXc9MEZzzm4nAEE4nKedeFCpjZ3yxUMPeQBWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCYv/wE3mHijxLIhVtFLxfnpFvSNJphzea5wCzDl/+agIhAL2BnA95nsfeOCTtazY9wJa+jyelaYsvOAm8h9dK38DJ"}],"size":772,"noattachment":false,"key":"/split-lines/-/split-lines-0.1.0.tgz"},"directories":{},"readme":"# split-lines\n\n> Split lines into an array of lines\n\n## Install\n\n```\n$ npm install split-lines\n```\n\n## Usage\n\n```js\nimport splitLines from 'split-lines';\n\nsplitLines('foo\\r\\nbar\\r\\nbaz\\nrainbow');\n//=> ['foo', 'bar', 'baz', 'rainbow']\n\nsplitLines('foo\\r\\nbar\\r\\nbaz\\nrainbow', {preserveNewlines: true});\n//=> ['foo\\r\\n', 'bar\\r\\n', 'baz\\n', 'rainbow']\n```\n\n## API\n\n### splitLines(string, options?)\n\n#### string\n\nType: `string`\n\nString to split.\n\n#### options\n\nType: `object`\n\n##### preserveNewlines\n\nType: `boolean`\\\nDefault: `false`\n\nPreserve the line separator at the end of every line, except the last line, which will never contain one.\n","publish_time":1403966630695,"_cnpm_publish_time":1403966630695,"dist-tags":{"latest":"3.0.0"}}