{"name":"split-lines","version":"3.0.0","description":"Split lines into an array of lines","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/split-lines.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["split","lines","line","string","str","newline","newlines","linebreak","line-break","lf","crlf","eol","linefeed"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"149eec42a2e946321ea2b2e5cc6b2df9a4c04653","bugs":{"url":"https://github.com/sindresorhus/split-lines/issues"},"homepage":"https://github.com/sindresorhus/split-lines#readme","_id":"split-lines@3.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-d0TpRBL/VfKDXsk8JxPF7zgF5pCUDdBMSlEL36xBgVeaX448t+yGXcJaikUyzkoKOJ0l6KpMfygzJU9naIuivw==","shasum":"b7ce0d1a853ed73e1f6963c95e31d8f6e957ad69","tarball":"http://registry-npm.ywwl.com/split-lines/download/split-lines-3.0.0.tgz","fileCount":5,"unpackedSize":3625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb0IuCRA9TVsSAnZWagAApSoP/2GLUSOksS+CQM08MUmv\nDFIPC3H14PGZfRpSo2gD2bKuPvyEaszsal0MIkc9S+UdTlX8bqTY1ICMUn/s\nGQnGTIrezhguZSJz3DbveH/LjgCNqC77t/wqmSfanHP2giocp7CFItP4Uniw\noUqa+SPSfIhOZ4d2LRWT5//iozF2DlhXp9/8EALDG5Jpk342W22CDAF3Tu4S\nPmc6F7yPfYPK2MtmA1EB7283Dn664y9Vm5Ad9XK07TOunmW7Hb9/LP25ghF5\nruckauIR8Y8HE/Xfvm8Rn9UzBZ0h4sKClW2hzI5VtUCch0RJhc7XnFXbiVqB\nA53mLPh9CJEhat2nqL0ZDNRTFTiaKlsfMtlDi0gEglwpnDIbNTOIIzq4h55X\nfx9mRJVlHP3pvTZFTnhpp+ZhQIORLf9BX6dIknEp04DsDQM6rvpxMn+3CXyv\n3ohpGtUl0DR9kt3uFdlKJypsq07U8O0DMtBryuK5tyq1mkcfDsJBziQV2H8f\nAnROQpH2UBO+lL7ogBVUwV10r8sN9zCkWsNxyWGzub7CWqvxxLjKyd+P5rFg\nJMRoNDtRQ5mS1eCb5uw129GhzEykuThIdJKE5/Efpvpw6tr9rw/MQuvtTUK5\nKhyqoqKKH1iCRFYK4hs1qZh/wrjKgRFkaIUOwoYkO/Tz7st1MdN3jYexK8ns\n9ERV\r\n=1sbt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIClU7pV+aEDtVCO+s0mXWbcSM9fkMi5reF7tg0Yqs6tEAiApamIQfbkKsDmzEBY9iltpFpLkcVzZLrRXjYTJdw3dZQ=="}],"size":1837,"noattachment":false,"key":"/split-lines/-/split-lines-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split-lines_3.0.0_1617904174351_0.9095114951173666"},"_hasShrinkwrap":false,"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":1617904174475,"_cnpm_publish_time":1617904174475,"dist-tags":{"latest":"3.0.0"}}