{"name":"ansi-truncate","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/ansi-truncate.git"},"description":"A tiny function for truncating a string that may contain ANSI escape sequences.","version":"1.1.2","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["ansi","truncate"],"dependencies":{"fast-string-truncated-width":"^1.1.0"},"devDependencies":{"fava":"^0.3.2","tsex":"^3.0.2","typescript":"^5.3.3"},"_id":"ansi-truncate@1.1.2","gitHead":"4f37687d418a18149d20a3d603f55ba1e85a9bd5","bugs":{"url":"https://github.com/fabiospampinato/ansi-truncate/issues"},"homepage":"https://github.com/fabiospampinato/ansi-truncate#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-yhyu5Y/rRWku5GJfCCHHKyJsWahCRuy/ORI8wmClls+bUWMVpcVL6nEqmVnZZ9gaaWq+AWB6FCyarrt0ewVUXQ==","shasum":"39730799a696a33b4bcc782ac3e1550e6f3e79c2","tarball":"http://registry-npm.ywwl.com/ansi-truncate/download/ansi-truncate-1.1.2.tgz","fileCount":15,"unpackedSize":6353,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3GTpqGE5U7NN/yzoIBRqmk2nfoFmm+dlirLXMVTmGwQIhAPCH0YKCim63l3nmh5zAIgXtgmMJoRun+MS0wM3eW0sD"}],"size":2724,"noattachment":false,"key":"/ansi-truncate/-/ansi-truncate-1.1.2.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-truncate_1.1.2_1709072307006_0.7715678146324567"},"_hasShrinkwrap":false,"readme":"# ANSI Truncate\n\nA tiny function for truncating a string that may contain ANSI escape sequences.\n\n## Install\n\n```sh\nnpm install --save ansi-truncate\n```\n\n## Usage\n\n```ts\nimport colors from 'tiny-colors';\nimport truncate from 'ansi-truncate';\n\ntruncate ( colors.red ( 'foo' ), 2 ); // => Same as: colors.red ( 'f…' );\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1709072307146,"_cnpm_publish_time":1709072307146,"dist-tags":{"latest":"1.4.0"}}