{"name":"tiny-truncate","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/tiny-truncate.git"},"description":"A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.","license":"MIT","version":"1.0.3","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":"node test/index.js","prepublishOnly":"npm run clean && npm run compile && npm run test"},"keywords":["tiny","truncate"],"dependencies":{"ansi-truncate":"^1.2.0"},"devDependencies":{"fava":"^0.3.4","tiny-colors":"^2.2.2","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"tiny-truncate@1.0.3","gitHead":"8fe75f6d802fa1387abc8abcdd2939d55c1eb2db","bugs":{"url":"https://github.com/fabiospampinato/tiny-truncate/issues"},"homepage":"https://github.com/fabiospampinato/tiny-truncate#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ZdCMtUg6N5VgYAInid90lnA4R720w5iU7raqPspAoYxOSMyzp132b8DeKZGrO2yC3tvoJMUDaymY3XFN3Zr5sQ==","shasum":"f2d6892c5b2d60795d8155ef5adb25467da0b8fd","tarball":"http://registry-npm.ywwl.com/tiny-truncate/download/tiny-truncate-1.0.3.tgz","fileCount":5,"unpackedSize":2819,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVj+EPEhvYul9WaUwwJV1+gK2WUIgP96wWY+GsiSVZsAiEAuKMhonwL+Mb42MtvKOKuDJkWRXpaHB2Si6q69z2OCBo="}],"size":1643,"noattachment":false,"key":"/tiny-truncate/-/tiny-truncate-1.0.3.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tiny-truncate_1.0.3_1736640918208_0.14479893356561924"},"_hasShrinkwrap":false,"readme":"# Tiny Truncate\n\nA tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.\n\n## Install\n\n```sh\nnpm install tiny-truncate\n```\n\n## Usage\n\n```ts\nimport colors from 'tiny-colors';\nimport truncate from 'tiny-truncate';\n\n// Let's truncate a string, spanning at most the entire width of the terminal\n\ntruncate ( colors.red ( '---'.repeat ( 1000 ) ) ); // Some red dashes that don't overflow the width of the terminal\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1736640918387,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1736640918387,"dist-tags":{"latest":"1.0.5"}}