{"name":"tiny-truncate","version":"1.0.4","keywords":["tiny","truncate"],"license":"MIT","_id":"tiny-truncate@1.0.4","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/tiny-truncate#readme","bugs":{"url":"https://github.com/fabiospampinato/tiny-truncate/issues"},"dist":{"shasum":"04b78e62d509bf0b315c44ab3da3a2ba8adf6b8f","tarball":"http://registry-npm.ywwl.com/tiny-truncate/download/tiny-truncate-1.0.4.tgz","fileCount":5,"integrity":"sha512-McPUXRyuD/JKk8Y768eUivnG0L5csbutwJEKaHQ5QaWz73WK9NWX6k6Dtkorrhzf89HSQ55Zhp3bbhUcE68dEg==","signatures":[{"sig":"MEYCIQDXWtbmUGZNxYkOUzt0C0ZYNaKFNX1Eob1j045ITShVHAIhALuEl7uoksdiwuZnYzDmuzF/isDOryh3ym20JseW4DO+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2819,"size":1643,"noattachment":false,"key":"/tiny-truncate/-/tiny-truncate-1.0.4.tgz"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"b07da7e04790839e1fb6f2bfff404cfeea3f8896","scripts":{"test":"node test/index.js","clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/tiny-truncate.git","type":"git"},"_npmVersion":"10.2.3","description":"A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"ansi-truncate":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3","tiny-colors":"^2.2.2"},"_npmOperationalInternal":{"tmp":"tmp/tiny-truncate_1.0.4_1754300297921_0.22281714206068304","host":"s3://npm-registry-packages-npm-production"},"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":1754300298113,"_cnpm_publish_time":1754300298113,"dist-tags":{"latest":"1.0.5"}}