{"name":"trim-newlines","version":"5.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"},"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":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["trim","newline","newlines","linebreak","lf","crlf","left","right","start","end","string","remove","delete","strip"],"devDependencies":{"ava":"^5.2.0","tsd":"^0.28.0","xo":"^0.53.1"},"types":"./index.d.ts","gitHead":"6980540ee683a660fd82cb1bda37bf1ebd989179","bugs":{"url":"https://github.com/sindresorhus/trim-newlines/issues"},"homepage":"https://github.com/sindresorhus/trim-newlines#readme","_id":"trim-newlines@5.0.0","_nodeVersion":"14.21.3","_npmVersion":"9.2.0","dist":{"integrity":"sha512-kstfs+hgwmdsOadN3KgA+C68wPJwnZq4DN6WMDCvZapDWEF34W2TyPKN2v2+BJnZgIz5QOfxFeldLyYvdgRAwg==","shasum":"fbe350dc9d5fe15e80793b86c09bc7436a3da383","tarball":"http://registry-npm.ywwl.com/trim-newlines/download/trim-newlines-5.0.0.tgz","fileCount":5,"unpackedSize":4609,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSIks+k/hyVc2HhU4ZVJGMXB5P3XDC9xI6Ynwi91qR8gIhAPibJfbHSOBN0dGHmpta5O3xbJUHsQ2Hfgdn0qT2vAfI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGJm0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmppww//ZDo9CGk/bYMtGvU8oucIqvXdDZL9VRej87ueed1CT0Rf/BnA\r\nJ2oj4IbiFUrsoBHMMP6+AzQWL0P5MxUYUZ4KqKrfkg8SoO1IhTDrmn4nFj3r\r\nzps9v3MNu4hc7Bg4s3e9NnxwYpBQav/HHnHq+p/mtRE1PCAQDdISG59hiuxf\r\nHNn+3A4BLhWucfJGTOWdYidfhtY84puDEkObQERrI9lNopqAFmD4MTZB2oiy\r\nGVIOr/JRanyY93nRBzEpPejUXohEYIBgR8XdOMTOxpmGavFAuBNPf+vUwDBc\r\niME2A+zot7LAI929KqH54WY6d6cY+MMsawBeV1/7HvRkUPmFTYgAqyXKdbI+\r\ngHxqh3vsC7JK2tt3u0jzAp+yWJ3eOaj0ADkYer6zqy3Yvc3ZueKi91Zmq8bq\r\nKzIKHdmWMaRGmcTrRgrrk3ZsypcjwZfxM7fX8T6E3fJafb4iPBZ7MiohxNxD\r\nTIveWm9MHuWuH6TE05Kgy4Z55QOZyAAz6y4yDyjH716Ps9zsEXJM6QurIw9j\r\nfu9mwNg4y2t1tCgvDqK5Sb/vEnZSJE7PbSA0Hytj9Bq0SI1yFcLO+dLuEECN\r\nJIhDs7M5LVV8Leiw8r8BHHc5Os6gx3VlWGlI11WTK0lZ79ZkLgV3UCTLk9h5\r\nzk6d5SqIIP+Yl+vLLqRVOxTIya77mBnLvf0=\r\n=LJ4x\r\n-----END PGP SIGNATURE-----\r\n","size":1911,"noattachment":false,"key":"/trim-newlines/-/trim-newlines-5.0.0.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_5.0.0_1679333811872_0.7567101222604802"},"_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":1679333812010,"_cnpm_publish_time":1679333812010,"dist-tags":{"3-0-1":"3.0.1","latest":"5.0.0"}}