{"name":"trim-newlines","version":"1.0.0","description":"Trim newlines from the start and/or end of a string","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/trim-newlines"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["trim","newline","newlines","linebreak","lf","crlf","left","right","start","end","string","str","remove","delete","strip"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"f651a2d4cbf382c2936e6e53edee9316602e4ce7","bugs":{"url":"https://github.com/sindresorhus/trim-newlines/issues"},"homepage":"https://github.com/sindresorhus/trim-newlines","_id":"trim-newlines@1.0.0","_shasum":"5887966bb582a4503a41eb524f7d35011815a613","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5887966bb582a4503a41eb524f7d35011815a613","tarball":"http://registry-npm.ywwl.com/trim-newlines/download/trim-newlines-1.0.0.tgz","integrity":"sha512-Nm4cF79FhSTzrLKGDMi3I4utBtFv8qKy4sq1enftf2gMdpqI8oVQTAfySkTz5r49giVzDj88SVZXP4CeYQwjaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCskcTfkqYu5RvgXu9ZvzPXPYU2uUl2eRBsr40FohLo4wIhAJ82w7h6mus/XhufHToqTrXVaohv0vqf5H/x5kQpSUmu"}],"size":1610,"noattachment":false,"key":"/trim-newlines/-/trim-newlines-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# trim-newlines\n\n> Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string\n\nLooking to trim all whitespace, not just newlines? Use `String#trim()`, `String#trimStart()`, or `String#trimEnd()`.\n\n## Install\n\n```sh\nnpm install trim-newlines\n```\n\n## Usage\n\n```js\nimport {trimNewlines, trimNewlinesStart, trimNewlinesEnd} from 'trim-newlines';\n\ntrimNewlines('\\n🦄\\n🦄\\r\\n');\n//=> '🦄\\n🦄'\n\ntrimNewlinesStart('\\n🦄\\r\\n');\n//=> '🦄\\r\\n'\n\ntrimNewlinesEnd('\\n🦄\\r\\n');\n//=> '\\n🦄'\n```\n\n## API\n\n### trimNewlines(string)\n\nTrim from the start and end of a string.\n\n### trimNewlinesStart(string)\n\nTrim from the start of a string.\n\n### trimNewlinesEnd(string)\n\nTrim from the end of a string.\n","publish_time":1443518907741,"_cnpm_publish_time":1443518907741,"dist-tags":{"3-0-1":"3.0.1","latest":"5.0.0"}}