{"name":"trim-newlines","version":"4.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"},"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":["trim","newline","newlines","linebreak","lf","crlf","left","right","start","end","string","remove","delete","strip"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"b63718391b436e87fe9b29052c1b9274786e89fa","bugs":{"url":"https://github.com/sindresorhus/trim-newlines/issues"},"homepage":"https://github.com/sindresorhus/trim-newlines#readme","_id":"trim-newlines@4.0.1","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-5n5GIW0uEbjCB2PO6OoaG11rscJmLOLw12ZG9e0vBKNMToDJ2n1+AkUhJpGO2bLj3jXKa/gYTGVmilX5CCxqmA==","shasum":"caa1a0c92e86282c9cc8485ccd3ee5a6a4fbd958","tarball":"http://registry-npm.ywwl.com/trim-newlines/download/trim-newlines-4.0.1.tgz","fileCount":5,"unpackedSize":4615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsR2cCRA9TVsSAnZWagAALBgP/0Dh4gkz3ZUjhuhJLBI2\ngD9vQNu/A5q/TO6cSm8PqcVn/DB9a28GPs5LRbbYmrb27T999/7IanMCSnCv\nT4cxdpyJx/5zBsL7PN7rzgrPzFCyFbEYWMhPHwkaBGIBji+eBXsqzo7Zg8AY\nwgOAA6e4CMF4HsPOd/23Y0eXEJ5O/M33q+R3m0EFAeX4jXcvXXgXL1FS04aN\nKhxBz5AT78ozv3oe6yPPNFpeUT9l7APKEeUcKNKj1GLJhBjPlvjtd+xwIri8\nS32lh0+tJvgvhF/x0n7t4ggOtOunOSUbjFA04b0SVe2kDO/hRfza0ecA9B07\nGkebbQlYxzQPpP5vS1I7UsFD+uoWJ77QPoTfISvVYy6wvl8S/tLj0QVevn9b\nm/f9Sx+SO1/TAl6PoIbWk6YWWmAtFCHYQoq+l14yHHWV2bmcWgmGFmSHy53n\n4LPq3XJ3HIWb5es/E5Bc5YKp3ouidH+fMNYLGJQDhRq86ta538uuK+Sx8TmR\nGEr6rMWG0h2iVqhuCc0pxgzVGxt3hVksAR5SxWUFkP1S9DBbiElMX8YWytI3\nwlz5VALHnlprdO+oYwMT17uLz07kQdqAkEg2zHgYBYxVwN06p/cm5mEmjsT0\nqjsE0zDOxEoDTd2R/0nPX3ZMMh/thzgjS0HtZxR1fBWTq876Iex2Mu50KMoh\nptTT\r\n=JfIb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx6npmI+gnsLx0obTfvmQnfss19pxnUT4I61uBPk71LQIgVJRqJ1maljfogr9WjumyOu88n4AxIweRvKghlXRE2KA="}],"size":2024,"noattachment":false,"key":"/trim-newlines/-/trim-newlines-4.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_4.0.1_1622220187784_0.2874199023844335"},"_hasShrinkwrap":false,"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":1622220187930,"_cnpm_publish_time":1622220187930,"dist-tags":{"3-0-1":"3.0.1","latest":"5.0.0"}}