{"name":"trim-newlines","version":"4.1.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":">=12"},"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":"96ffac489de8e5946a31ca324ccfee96800a3603","bugs":{"url":"https://github.com/sindresorhus/trim-newlines/issues"},"homepage":"https://github.com/sindresorhus/trim-newlines#readme","_id":"trim-newlines@4.1.0","_nodeVersion":"14.21.3","_npmVersion":"9.2.0","dist":{"integrity":"sha512-2/I5TKaI5bX0J4udDSYb1oNOggPSTyCh/7NvF8P6uzSL1NwG4fxMNo5vKWkZZgApabANBLRdo03hYBL8dw5cgA==","shasum":"6ac0c73b59daef3976c0ec8ebf9a99b16d3905b5","tarball":"http://registry-npm.ywwl.com/trim-newlines/download/trim-newlines-4.1.0.tgz","fileCount":5,"unpackedSize":5038,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcUdVKTjaOqAYZhFufNw9qtUizEiDpZCXbzHN23L7lDgIhAMUn+Pe+6Ph/QF2nAjBTbls6/IPAOyMrVXPjMfabqAT8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGJekACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlmQ//VN8v0Dl4RXQNTgA82NQWk3LJxn746Dh+mcTOP99JXu2AxifH\r\n9hK3hhzGtvUXYA/iOFSn/LGDO156tuB4wG0NESSECy6nPxoJrM7mGzFy8t7x\r\n3ojlxsqNu/R3ut7fDV3t/z7ZVhpjmSKXejG+4Cm9Zayq9hkj8WL+5NTOWJ9l\r\n3WG8uWHOi6PB4JBzc+kjnSWVFWpMRO9fjlES2ZhkHoIbG42/zXPbKLIpQ0pQ\r\nhnHQo4ieIXQ4S5cRpEvMwAaC7HZZSk9GgJrQOxNYyCy1TfUyTRS871d0uawb\r\nn2y9xl5i39CNRUdeVHjZOTO7MeUwQ1A08ELCHzEIreI3gKt85MRZ0iMKu6Oc\r\n8A3B4KeyKCfclfZYwnfYpCIuj2L1aBPmJDZ/OQcQymjKza200+lyW17uudE1\r\nBNAUWnzYhtFpeVvJfDkaQthMuDIxxs3hNPDzpQoAI0Ine2kqvCwB/Em8cgOj\r\ne+CvuXYZ91Uo8MWlEBxiMIztrfJy32WDe4IkOILrGGquwgSl2tw5WxVAfd1i\r\nLK4zfKYPihJDgdkQeHoCZzhpdBuPpMr8NJPGby7PbMfQTjQ8bTfQZ0NaaDRT\r\nZhUq2nx4Hf49QSBKVnxfsDFuBfD0PF6gtAIYX9Vow3nF+LlG5+Z98RRJgpCM\r\nAmDlE+csRLSr3lNzyJ+5T0VncO+sp8+/V2k=\r\n=mOMb\r\n-----END PGP SIGNATURE-----\r\n","size":2137,"noattachment":false,"key":"/trim-newlines/-/trim-newlines-4.1.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_4.1.0_1679333284540_0.5517642783465395"},"_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":1679333284701,"_cnpm_publish_time":1679333284701,"dist-tags":{"3-0-1":"3.0.1","latest":"5.0.0"}}