{"name":"trim-newlines","version":"3.0.1","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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["trim","newline","newlines","linebreak","lf","crlf","left","right","start","end","string","remove","delete","strip"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"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 trim-newlines\n```\n\n\n## Usage\n\n```js\nconst trimNewlines = require('trim-newlines');\n\ntrimNewlines('\\n🦄\\r\\n');\n//=> '🦄'\n\ntrimNewlines.start('\\n🦄\\r\\n');\n//=> '🦄\\r\\n'\n\ntrimNewlines.end('\\n🦄\\r\\n');\n//=> '\\n🦄'\n```\n\n\n## API\n\n### trimNewlines(string)\n\nTrim from the start and end of a string.\n\n### trimNewlines.start(string)\n\nTrim from the start of a string.\n\n### trimNewlines.end(string)\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","readmeFilename":"readme.md","gitHead":"b10d5f4afef832b16bc56d49fc52c68cbd403869","bugs":{"url":"https://github.com/sindresorhus/trim-newlines/issues"},"homepage":"https://github.com/sindresorhus/trim-newlines#readme","_id":"trim-newlines@3.0.1","_nodeVersion":"12.22.1","_npmVersion":"7.5.4","dist":{"integrity":"sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==","shasum":"260a5d962d8b752425b32f3a7db0dcacd176c144","tarball":"http://registry-npm.ywwl.com/trim-newlines/download/trim-newlines-3.0.1.tgz","fileCount":5,"unpackedSize":3852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsR5UCRA9TVsSAnZWagAAeJcQAJc5JDc8NFyjoHmScr6O\nNlD0nZfh/aX4JL8H/5P8h2GBYrmWmbNgsWhPebEGqAm1VPAJEGmn/1XLFnxX\nD+AUfhujtc7XI/7NJ6LVsuqXYXpUoNIpR9J1mxR9fCcuAK/dKCh38S/SebkF\nJtKPnvMMRDSki+sII2LvIGt1B9gEMTc4M1jreNuEbi+glkrp+wNIrUk8jpVQ\nhEpXS2acodIfP7hAvq2ybyeSN3/9cNUlDbxdAXJvS0QnuhKmgQAkfyOq/7dd\nUQrYlyakiB6RXouDUCPLlxgO5+BZKVbtYC7ZWRQp9N7E549AYQhRDzMfCTkj\n6YhBpCatq2uv9Bw9gggzHnDk4pCUUZj23dSbtZ53X4hke10Xi1Dkh2+qsPjw\ndUBTzYzzA0WLydZgt7sPAq40AM0qu7kOqjG8f+RvZCjUexMN51otuWySd5wK\n5UzRzeKW/cU/V2pxvHSw4SmWjj1jg+Of34pKGF6Lh/KQDkQkTmGl6kSg8epn\nJgCzagqkXP4Abm7oxgczq49oDScykdlMQHwHF0Rf5E3+JP9HH6GG7XsRLrZs\nPv3nHPXPsVIvi8RerZcbkMNHUZTHQ+T+VLgsW8G20Gi4NQQypFu4ljwRU/l/\nqbezwgu9Bx8ZP3D3lHrfXhCmsUTofMe+7ofOA3eapF40F4qLHQulIGOgZSRb\ntxQq\r\n=pfy+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID24OzzvbjFD74SXISi6U+x/XsodxTko3Z2HXvvBICLWAiEA+FiPrxP7HLnrT0AZUWLXrqQPSnw0yZ8Efy6laUtQtjw="}],"size":1805,"noattachment":false,"key":"/trim-newlines/-/trim-newlines-3.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/trim-newlines_3.0.1_1622220372278_0.6237785637243509"},"_hasShrinkwrap":false,"publish_time":1622220372397,"_cnpm_publish_time":1622220372397,"dist-tags":{"3-0-1":"3.0.1","latest":"5.0.0"}}