{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["trim","newline","newlines","linebreak","lf","crlf","left","right","start","end","string","str","remove","delete","strip"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Trim newlines from the start and/or end of a string","readme":"# trim-newlines [![Build Status](https://travis-ci.org/sindresorhus/trim-newlines.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-newlines)\n\n> Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string\n\n\n## Install\n\n```\n$ npm install --save trim-newlines\n```\n\n\n## Usage\n\n```js\nconst trimNewlines = require('trim-newlines');\n\ntrimNewlines('\\nunicorn\\r\\n');\n//=> 'unicorn'\n```\n\n\n## API\n\n### trimNewlines(input)\n\nTrim from the start and end of a string.\n\n### trimNewlines.start(input)\n\nTrim from the start of a string.\n\n### trimNewlines.end(input)\n\nTrim from the end of a string.\n\n\n## Related\n\n- [trim-left](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left\n- [trim-right](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/trim-newlines.git"},"bugs":{"url":"https://github.com/sindresorhus/trim-newlines/issues"},"license":"MIT","versions":{"1.0.0":{"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://nexus.dui88.com:8081/nexus/content/groups/npm-all/trim-newlines/-/trim-newlines-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"trim-newlines","version":"2.0.0","description":"Trim newlines from the start and/or end of a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/trim-newlines.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"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":"9db1edbbc6ffe44cb8a11ae7690be6044dfe95c7","bugs":{"url":"https://github.com/sindresorhus/trim-newlines/issues"},"homepage":"https://github.com/sindresorhus/trim-newlines#readme","_id":"trim-newlines@2.0.0","_shasum":"b403d0b91be50c331dfc4b82eeceb22c3de16d20","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b403d0b91be50c331dfc4b82eeceb22c3de16d20","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/trim-newlines/-/trim-newlines-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/trim-newlines-2.0.0.tgz_1492866373755_0.2756255145650357"},"directories":{}}},"name":"trim-newlines","time":{"modified":"2017-04-22T13:06:15.702Z","created":"2015-09-29T09:28:27.741Z","1.0.0":"2015-09-29T09:28:27.741Z","2.0.0":"2017-04-22T13:06:15.702Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/trim-newlines#readme"}