{"_id":"fast-wrap-ansi","_rev":"7-dfce06b60f50a07eb4da69e53bd78280","name":"fast-wrap-ansi","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"fast-wrap-ansi","version":"0.0.1","keywords":["wrap","ansi","term","colors"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"fast-wrap-ansi@0.0.1","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"homepage":"https://github.com/43081j/fast-wrap-ansi#readme","bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"dist":{"shasum":"b577c59298938af2e9338ce537d7cca2834a1f41","tarball":"https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.0.1.tgz","fileCount":5,"integrity":"sha512-HC7MXCmirEHbw+P5E9rmpIZVfQ/md3p8hJaAoZDAcjACtiOLOSxAzDUBE+GpvmbxkNdgyD2Qf2518jEXgYYZnw==","signatures":[{"sig":"MEUCID3Iz5uHkbAQycNapog93JLkYyTRkK+frEWxI293zZYUAiEA+V3FYWL9v+Ahpf7iUZfRhtLDuLAkmFtRbOXkr7SF+IQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17162},"main":"lib/main.js","type":"module","types":"./lib/main.d.ts","gitHead":"da332931896737db83a2e1287b0c7046d788f689","scripts":{"lint":"eslint src && prettier --check src","test":"node --test","build":"tsc","format":"prettier --write src"},"_npmUser":{"name":"43081j","email":"43081james@gmail.com"},"repository":{"url":"git+https://github.com/43081j/fast-wrap-ansi.git","type":"git"},"_npmVersion":"11.3.0","description":"A tiny and fast text wrap library which takes ANSI escapes into account.","directories":{},"_nodeVersion":"24.2.0","dependencies":{"ansi-purge":"^1.0.1","fast-string-width":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.32.0","globals":"^16.3.0","prettier":"^3.6.2","@eslint/js":"^9.32.0","typescript":"^5.8.3","@types/node":"^24.1.0","typescript-eslint":"^8.38.0"},"_npmOperationalInternal":{"tmp":"tmp/fast-wrap-ansi_0.0.1_1754263703927_0.745674707005525","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"fast-wrap-ansi","version":"0.1.0","keywords":["wrap","ansi","term","colors"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"fast-wrap-ansi@0.1.0","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"homepage":"https://github.com/43081j/fast-wrap-ansi#readme","bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"dist":{"shasum":"139f0fcd1dc494dc560fa5724b86af3c31d83aff","tarball":"https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.1.0.tgz","fileCount":3,"integrity":"sha512-GnMiRUle/h4Lg0OLUvjPpj6SjyM5H8OtTBJaKKJaOsxsRQUZ/52gNMFYK7oJbqs7hkTbj8EIPJIw0WNbGZEtIA==","signatures":[{"sig":"MEUCICwUZ0AibAMOjo3Q1nPaW7O2KZqCHDrqHuR+qmo6dzcRAiEA+5ZA492QFHzYLiq4pHNKUfWH2aCugWrWW47WxNRkiHk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fast-wrap-ansi@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2705},"main":"lib/main.js","type":"module","gitHead":"7cbda65cadb5fb66228b5c55aed02d4c70dbc6ba","scripts":{"lint":"eslint src test && prettier --check src test","test":"node --test","build":"tsc","format":"prettier --write src test"},"_npmUser":{"name":"43081j","email":"43081james@gmail.com"},"repository":{"url":"git+https://github.com/43081j/fast-wrap-ansi.git","type":"git"},"_npmVersion":"10.9.2","description":"A tiny and fast text wrap library which takes ANSI escapes into account.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"fast-string-width":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.32.0","globals":"^16.3.0","prettier":"^3.6.2","tinybench":"^4.0.1","wrap-ansi":"^9.0.0","@eslint/js":"^9.32.0","typescript":"^5.8.3","@types/node":"^24.2.0","typescript-eslint":"^8.38.0","fast-wrap-ansi-prod":"npm:fast-wrap-ansi@*"},"_npmOperationalInternal":{"tmp":"tmp/fast-wrap-ansi_0.1.0_1754316157557_0.07875455257060349","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"fast-wrap-ansi","version":"0.1.1","keywords":["wrap","ansi","term","colors"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"fast-wrap-ansi@0.1.1","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"homepage":"https://github.com/43081j/fast-wrap-ansi#readme","bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"dist":{"shasum":"b1d280907d654d5086d085d0333f00e86a456753","tarball":"https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.1.1.tgz","fileCount":6,"integrity":"sha512-pJPOAyKIDwZ+5Pdq/vIJUY9E3bDq9E3THm94l1dHI/4NjV2144Syc/SpZEEy2yEXYo+oSsH5Z+PiOF8BW/NBJQ==","signatures":[{"sig":"MEYCIQD8NlNPAiXLdtUy5xlX3hOCMfkabni0VeY4dEgwL0TFeQIhANfk7E1d9Mwr6ZavI48fllIBSyzzkBIThI+1JIFnp+w7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fast-wrap-ansi@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18263},"main":"lib/main.js","type":"module","types":"./lib/main.d.ts","gitHead":"478ee5d4aebdb37ad967cc454657520ac3ee86b4","scripts":{"lint":"eslint src test && prettier --check src test","test":"node --test","build":"tsc","format":"prettier --write src test"},"_npmUser":{"name":"43081j","email":"43081james@gmail.com"},"repository":{"url":"git+https://github.com/43081j/fast-wrap-ansi.git","type":"git"},"_npmVersion":"10.9.2","description":"A tiny and fast text wrap library which takes ANSI escapes into account.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"fast-string-width":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.32.0","globals":"^16.3.0","prettier":"^3.6.2","tinybench":"^4.0.1","wrap-ansi":"^9.0.0","@eslint/js":"^9.32.0","typescript":"^5.8.3","@types/node":"^24.2.0","typescript-eslint":"^8.38.0","fast-wrap-ansi-prod":"npm:fast-wrap-ansi@*"},"_npmOperationalInternal":{"tmp":"tmp/fast-wrap-ansi_0.1.1_1754316888047_0.41307938870323224","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"fast-wrap-ansi","version":"0.1.2","keywords":["wrap","ansi","term","colors"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"fast-wrap-ansi@0.1.2","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"homepage":"https://github.com/43081j/fast-wrap-ansi#readme","bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"dist":{"shasum":"e86d4c3e42fb0923d75d3bea9d50bab25e97fac0","tarball":"https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.1.2.tgz","fileCount":6,"integrity":"sha512-rHur+dO4SPhxCsEYJdV2vLXCkejI2MoNsHBE2btkluPNXoNsKyEvi1iNzKDltIUtomRD3xiEDMF1gKmclCcblQ==","signatures":[{"sig":"MEUCIQCbthfC3WRFOEPEDFe3YNd/Pp3Bq2+wJGKh9y/iOKbggQIgC1mp2zDh2BBmcQS7W/du88KJnZFgCzsp30cwDft0flc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fast-wrap-ansi@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18495},"main":"lib/main.js","type":"module","types":"./lib/main.d.ts","gitHead":"28fc14e733dcf89aa097687bbb0dbd5792ac87fe","scripts":{"lint":"eslint src test && prettier --check src test","test":"node --test","build":"tsc","format":"prettier --write src test"},"_npmUser":{"name":"43081j","email":"43081james@gmail.com"},"repository":{"url":"git+https://github.com/43081j/fast-wrap-ansi.git","type":"git"},"_npmVersion":"10.9.2","description":"A tiny and fast text wrap library which takes ANSI escapes into account.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"fast-string-width":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.32.0","globals":"^16.3.0","prettier":"^3.6.2","tinybench":"^4.0.1","wrap-ansi":"^9.0.0","@eslint/js":"^9.32.0","typescript":"^5.8.3","@types/node":"^24.2.0","typescript-eslint":"^8.38.0","fast-wrap-ansi-prod":"npm:fast-wrap-ansi@*"},"_npmOperationalInternal":{"tmp":"tmp/fast-wrap-ansi_0.1.2_1754322511396_0.5845920852136341","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"fast-wrap-ansi","version":"0.1.3","keywords":["wrap","ansi","term","colors"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"fast-wrap-ansi@0.1.3","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"homepage":"https://github.com/43081j/fast-wrap-ansi#readme","bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"dist":{"shasum":"5d4f58acbc1f30f36aca731683793504403718ec","tarball":"https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.1.3.tgz","fileCount":6,"integrity":"sha512-iLg8mLuZBztzm8jmY6/xjr+ci4WYo6eYgHAioTA1ElxkE1BJ9J4tPuDlnHaLfljkRZ2vYfP0CDIpCHBBag4InA==","signatures":[{"sig":"MEUCIQCfGivrbSLGr9BMG/d7lH47rPptqSE9zjaZMRNp/StqhwIgb5S95a1mLlkIJLHTmbXbX2Ru8Oo0gifCeaC5WaXVn1w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fast-wrap-ansi@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18512},"main":"lib/main.js","type":"module","types":"./lib/main.d.ts","gitHead":"8b860d79289d2211dd76a039ad25860e1f44986b","scripts":{"lint":"eslint src test && prettier --check src test","test":"node --test","build":"tsc","format":"prettier --write src test"},"_npmUser":{"name":"43081j","email":"43081james@gmail.com"},"repository":{"url":"git+https://github.com/43081j/fast-wrap-ansi.git","type":"git"},"_npmVersion":"10.9.2","description":"A tiny and fast text wrap library which takes ANSI escapes into account.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"fast-string-width":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.32.0","globals":"^16.3.0","prettier":"^3.6.2","tinybench":"^4.0.1","wrap-ansi":"^9.0.0","@eslint/js":"^9.32.0","typescript":"^5.8.3","@types/node":"^24.2.0","typescript-eslint":"^8.38.0","fast-wrap-ansi-prod":"npm:fast-wrap-ansi@*"},"_npmOperationalInternal":{"tmp":"tmp/fast-wrap-ansi_0.1.3_1754324330944_0.0494550431537184","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"fast-wrap-ansi","version":"0.1.6","keywords":["wrap","ansi","term","colors"],"author":{"url":"https://github.com/43081j","name":"James Garbutt"},"license":"MIT","_id":"fast-wrap-ansi@0.1.6","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"homepage":"https://github.com/43081j/fast-wrap-ansi#readme","bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"dist":{"shasum":"a2eb1b177ac05062d5ee2e7af7ec2813bd5c20cf","tarball":"https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.1.6.tgz","fileCount":6,"integrity":"sha512-HlUwET7a5gqjURj70D5jl7aC3Zmy4weA1SHUfM0JFI0Ptq987NH2TwbBFLoERhfwk+E+eaq4EK3jXoT+R3yp3w==","signatures":[{"sig":"MEUCIQC0Ern4d3QaRb1lm+bo4Eby4eq8MXXtTNgU5ghs4xZKJAIgQb3kt+wSTIBXpOgY0tOW/sCPqqVHxUBwt3C0lLdWRwQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fast-wrap-ansi@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18827},"main":"lib/main.js","type":"module","types":"./lib/main.d.ts","gitHead":"4559b83e5dfa9eb3ccb5ffc5155b3b769b82e1c7","scripts":{"lint":"npm run lint:js && npm run lint:format && npm run lint:types","test":"vitest run","build":"tsc","format":"prettier --write src test","lint:js":"eslint src test","lint:types":"npx tsc --noEmit -p tsconfig.test.json","lint:format":"prettier --check src test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c16f16c-fed6-4478-b79f-b83fd7c87b1f"}},"repository":{"url":"git+https://github.com/43081j/fast-wrap-ansi.git","type":"git"},"_npmVersion":"11.6.1","description":"A tiny and fast text wrap library which takes ANSI escapes into account.","directories":{},"_nodeVersion":"22.19.0","dependencies":{"fast-string-width":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.32.0","vitest":"^3.2.4","prettier":"^3.6.2","tinybench":"^5.0.1","wrap-ansi":"^9.0.2","@eslint/js":"^9.32.0","picocolors":"^1.1.1","typescript":"^5.8.3","@types/node":"^24.2.0","typescript-eslint":"^8.38.0","fast-wrap-ansi-prod":"npm:fast-wrap-ansi@*"},"_npmOperationalInternal":{"tmp":"tmp/fast-wrap-ansi_0.1.6_1759150453860_0.47790506463956683","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"fast-wrap-ansi","version":"0.2.0","description":"A tiny and fast text wrap library which takes ANSI escapes into account.","keywords":["wrap","ansi","term","colors"],"homepage":"https://github.com/43081j/fast-wrap-ansi#readme","bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"repository":{"type":"git","url":"git+https://github.com/43081j/fast-wrap-ansi.git"},"license":"MIT","author":{"name":"James Garbutt","url":"https://github.com/43081j"},"type":"module","main":"lib/main.js","scripts":{"format":"prettier --write src test","lint":"npm run lint:js && npm run lint:format && npm run lint:types","lint:js":"eslint src test","lint:format":"prettier --check src test","lint:types":"npx tsc --noEmit -p tsconfig.test.json","build":"tsc","test":"vitest run"},"devDependencies":{"@eslint/js":"^9.32.0","@types/node":"^24.2.0","eslint":"^9.32.0","fast-wrap-ansi-prod":"npm:fast-wrap-ansi@*","picocolors":"^1.1.1","prettier":"^3.6.2","tinybench":"^5.0.1","typescript":"^5.8.3","typescript-eslint":"^8.38.0","vitest":"^3.2.4","wrap-ansi":"^9.0.2"},"dependencies":{"fast-string-width":"^3.0.2"},"gitHead":"469a0f870b348410db29237ae67f1c58dc87572a","types":"./lib/main.d.ts","_id":"fast-wrap-ansi@0.2.0","_nodeVersion":"22.19.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-rLV8JHxTyhVmFYhBJuMujcrHqOT2cnO5Zxj37qROj23CP39GXubJRBUFF0z8KFK77Uc0SukZUf7JZhsVEQ6n8w==","shasum":"c0ae3f3982d061c3d657ec927196fbb47e22fe64","tarball":"https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.0.tgz","fileCount":6,"unpackedSize":18972,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fast-wrap-ansi@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHG+US8pqxaZ6KbT4r5Z2CQfQ26fPKmXIOEdxvFplPhIAiEA2iA6Jz4eT9LQb3EpQCTvi6ofRE0lSJy9EiRUoyiOA8c="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0c16f16c-fed6-4478-b79f-b83fd7c87b1f"}},"directories":{},"maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fast-wrap-ansi_0.2.0_1759254676322_0.004199015694500874"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-03T23:28:23.926Z","modified":"2025-09-30T17:51:16.969Z","0.0.1":"2025-08-03T23:28:24.107Z","0.1.0":"2025-08-04T14:02:37.765Z","0.1.1":"2025-08-04T14:14:48.228Z","0.1.2":"2025-08-04T15:48:31.632Z","0.1.3":"2025-08-04T16:18:51.204Z","0.1.6":"2025-09-29T12:54:14.041Z","0.2.0":"2025-09-30T17:51:16.514Z"},"bugs":{"url":"https://github.com/43081j/fast-wrap-ansi/issues"},"author":{"name":"James Garbutt","url":"https://github.com/43081j"},"license":"MIT","homepage":"https://github.com/43081j/fast-wrap-ansi#readme","keywords":["wrap","ansi","term","colors"],"repository":{"type":"git","url":"git+https://github.com/43081j/fast-wrap-ansi.git"},"description":"A tiny and fast text wrap library which takes ANSI escapes into account.","maintainers":[{"name":"43081j","email":"43081james@gmail.com"}],"readme":"# fast-wrap-ansi\n\nWordwrap a string, taking ANSI escape codes into account.\n\nA fast, light fork of the `wrap-ansi` package.\n\n\n## Install\n\n```bash\nnpm i -S fast-wrap-ansi\n```\n\n## Usage\n\n```ts\nimport {wrapAnsi} from 'fast-wrap-ansi';\n\nconst str = 'This is a string with some \\x1b[31mANSI\\x1b[39m codes.';\nconst wrapped = wrapAnsi(str, 20);\nconsole.log(wrapped);\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}