{"_id":"tiny-truncate","_rev":"6-de13ebb30ca93287bbf9ab75f2d0162f","name":"tiny-truncate","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"tiny-truncate","version":"1.0.0","keywords":["tiny","truncate"],"_id":"tiny-truncate@1.0.0","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":"a401ecec8b8fd5605cc7703b367eeb17cc86db1e","tarball":"https://registry.npmjs.org/tiny-truncate/-/tiny-truncate-1.0.0.tgz","fileCount":9,"integrity":"sha512-G8pNjQJghmoLCY6h37sBnDEAXmeKYGIiWNHCJJ77eQ01fqUq0ODhgevY3Go4q5T0xb6XMZ9rZAfR9wwuOvKotQ==","signatures":[{"sig":"MEQCIAQK1M/NJCgSSUNe5S3gTYnuC8ZFzbqrOzMQbxqwj0/MAiBEGaEecCI2pHkJmNpvkCKbgbHJr5a/j+rdSufA9etYZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidSGVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDGg/9GYOYf9CNH0EIc2DFOn79a66fecXw2p17/uCC21vWo8dN7hE4\r\nj32OytR+xxsSrtzLWpWGvh0NV84Suain5ZjHezgnPXpfU0ghGyGzjbDahDcz\r\nXOyMHGTouuqC28LW1y+B31htyJ0CwyEQfx4w/choq6+E6o1bFeYMXRsmRcWz\r\n8qF5Ct6sKH1yKPD+KSGcBXFpSHO4dYvKab7sHG9FlFq8+XbxQjTjJmwI5bEv\r\nhrlolaKltt54u7J+5YRM5/IKeZAL1mNwJ25T3IllZYrF+0ngrHX+ZfdN+8Nv\r\nSBiUytUhIdml6svlxAxrI0Cw+KunqRw/H4T7Mf+pMo3u6ZDvHdKj1wmhGDOJ\r\ncC084+IAm2qYPLQHoCuGOySaaVMqZARz+UfTgeV79LPY9obGG24LQc+OW+r9\r\n7dknMeXXNPGFAyoYH2g7lWyRpfNQYctWB65fWoEumk1hOFvLoZBsf+kxCao+\r\nzoahNwlrDLYOml8zfsmaFbBz9F8cM66pwtkYtUiY5dQ7YHdxpqspPWl2T9n4\r\nioYlTZmFSzebj0X4kFFCgvoIy9h5/KlU3fzfrz5qa8QTvacOFL6h+ZH8zA3a\r\n9bW4oOXQZKhljAUGjUXfaOWeeWNUn0B6bfdIZEYloa3mzisApAZ8rm6RiLcF\r\nYQsqugJAVUcHdJXDDUdsd7vMaBFIFneN4UU=\r\n=jR5Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"508468df9b51f6ac181575c67d4712e250469cd4","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","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":"8.1.0","description":"A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.","directories":{},"_nodeVersion":"16.13.0","dependencies":{"ansi-truncate":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.2","typescript":"^4.6.4","tiny-colors":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/tiny-truncate_1.0.0_1651843477074_0.27758062181950716","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"tiny-truncate","version":"1.0.1","keywords":["tiny","truncate"],"_id":"tiny-truncate@1.0.1","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":"7127003eedabb997d296511f13f516d126ced8de","tarball":"https://registry.npmjs.org/tiny-truncate/-/tiny-truncate-1.0.1.tgz","fileCount":9,"integrity":"sha512-zUrNqSEHgvdydTLp/AJtHBmk+cL2mx9i4lt+9iHLNhRuQkxhz7d41O5Vm9t69TsBLv/oV0LASzJDl5JowTyk0w==","signatures":[{"sig":"MEYCIQDziNjgailBv+8zL5WwcWcPOveH3TBy67E5WbrSRu/1ugIhAJPbVoNNWrGnRGBlYr1pD+BxZo0CJWuG++93Lj3SKpmi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidUDiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpijw/7B3yyCQXm5CbRaQ/kiFN5OBcY88+rQQMIvEzrULY+iuB71h4P\r\nWZqoecaIW3a49AYhugQUYuWNd87V0DImgFekUEIRfqKDgToI9SguU/4gPp+q\r\nBBrYZm8x7wH08fr64W9HMn7gAjGSZxT3AouCCLRmxLv8HkWO/aM8fEwHg1Gi\r\nvtZmi08o2g7aSxFw+YB+NhFjeuCndeCUSLva65pTuOwrQk1vIojI+Z3G3cWf\r\niUdKbkRGwGZp8BT2gBjKuqxTHRlYu4CYpa+ZpznmLxB7AkXIU+KtNjt2Z2/Q\r\nms5JnbVKfgQoyXv8RYbZB4qA/g1d0UFQpZ9ZRrBnmj/hfeUpJGnrXqeQX4to\r\nI2l92Nudw019YeGtN8AdUpJ7YD1dfKb/vPDG2tVwIM2D3O84Sxu+sVWoybx3\r\nVlXNiuuTctcmBUy+IiLw77IHK/HQIP20TeeWjfkNg7k4HKTbuOpXF7Ia3Y1R\r\nWM5ZgEPGLdo9+/I1j9zOp0Wy6J8h8eqxK6GQBBDDD/Fpqjmy5iyPuftY1tKi\r\nLpfcU/pXpflIotzwxvmTUueutr4XvJEzywysOkxajyh5x9InGlHviD03g9iA\r\nzX8KufCZAKZSeCqDWNgySZPGzWK8EErd69Nvl2frjlFgPWrawwmuS8XkFs+O\r\nifoDxw+hBmN02xfImYm1pnm2XroEfIM9WNY=\r\n=rrhO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"ce73ae8d964bbaefc63b0e47517c285afab9d97e","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","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":"8.1.0","description":"A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.","directories":{},"_nodeVersion":"16.13.0","dependencies":{"ansi-truncate":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.2","typescript":"^4.6.4","tiny-colors":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/tiny-truncate_1.0.1_1651851490440_0.34138837528980237","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"tiny-truncate","version":"1.0.2","keywords":["tiny","truncate"],"_id":"tiny-truncate@1.0.2","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":"5c94b296cca60b16d1f7eb166d661eefcb063905","tarball":"https://registry.npmjs.org/tiny-truncate/-/tiny-truncate-1.0.2.tgz","fileCount":9,"integrity":"sha512-XR2fjChcOjuz8Eu56zGwacYTKUHlhuzQ3VpD79yUwvWlLY3gCWorzRfBNXkmbwFjxzfmYZrC00cA4s/ET6mogw==","signatures":[{"sig":"MEYCIQCbWa++EqiitdmPx/m4u2b6mJuefB3e+Oh9h1Eg/ciwEQIhAJA9r73dU+gv9kct3O4e3eEx0CuNyOL3DOFXc6QsOJ4Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidUOXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrozw/+Nwvk1zeD2H4Iytz5Awvb1LH/e3jSzk5BKU0vgLjAgTjFPIkf\r\nnuUAUEcZkrkiSUkpvvRrtaf1SliGj04+oehk1sq0Gqjjz/R6q0wFCRaGrNVJ\r\nurjOuimJoOdDQ5gKeQ5nFwDsN/qrTgB9dHKSQPZG4y9DRSeTL4D277ln6IPX\r\n5kH+M7z+Tfy/vyZ4qk3Jun+Xz4GRR0PwDQ1wMCyG/G1AMP9PnYR6QXpmizPF\r\n8gijzu3C225PhdvKquSwmLY7aWVRDNmKO4jZeachVChuBhbvER8wqO2kfbtt\r\nL79oeZKjO0rwA4bBqeW7+Sw3kjEGPOcMF7lp89Edse/8u66xGa0bdsvG0KzJ\r\noVkx3MXr8nVTIMdVdnOaHbNWKbEFeVNCw115i0ePY2JyP1gxDIkkgqnB8LM7\r\nDdIa2FVP8f4wFcBteh5RiUpGQo7Ir8TjKza3wFczYa+QjtDy9fGnluZVz7IM\r\nGARGeev/75W20NwLxlmzSyF+ztjy8wffLlq6lIBGja6cwl8YgPaPdwHw0X15\r\nqwPyZnBz8XRCLVSIyceBVUxER0XpgzanV/5MSiHZSrVPUJ0NWJwvG9REFtBz\r\nSKNtFSbWCMfhAZ/bb4E2if1Pp4cUFPImMKvqWr5XyzjBFu0UOz3mOdq3xJ/f\r\n5ii0PRUewwEyfU1LhOQTYErVXW0VmYo5rD4=\r\n=XrWj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"91a6d685b155c8d880006380e28b8dbf5a7d5357","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","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":"8.1.0","description":"A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.","directories":{},"_nodeVersion":"16.13.0","dependencies":{"ansi-truncate":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.2","typescript":"^4.6.4","tiny-colors":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/tiny-truncate_1.0.2_1651852183360_0.6235178026085864","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"tiny-truncate","version":"1.0.3","keywords":["tiny","truncate"],"license":"MIT","_id":"tiny-truncate@1.0.3","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":"f2d6892c5b2d60795d8155ef5adb25467da0b8fd","tarball":"https://registry.npmjs.org/tiny-truncate/-/tiny-truncate-1.0.3.tgz","fileCount":5,"integrity":"sha512-ZdCMtUg6N5VgYAInid90lnA4R720w5iU7raqPspAoYxOSMyzp132b8DeKZGrO2yC3tvoJMUDaymY3XFN3Zr5sQ==","signatures":[{"sig":"MEUCICVj+EPEhvYul9WaUwwJV1+gK2WUIgP96wWY+GsiSVZsAiEAuKMhonwL+Mb42MtvKOKuDJkWRXpaHB2Si6q69z2OCBo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2819},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":"./dist/index.js","gitHead":"8fe75f6d802fa1387abc8abcdd2939d55c1eb2db","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.2.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.3_1736640918208_0.14479893356561924","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"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":"https://registry.npmjs.org/tiny-truncate/-/tiny-truncate-1.0.4.tgz","fileCount":5,"integrity":"sha512-McPUXRyuD/JKk8Y768eUivnG0L5csbutwJEKaHQ5QaWz73WK9NWX6k6Dtkorrhzf89HSQ55Zhp3bbhUcE68dEg==","signatures":[{"sig":"MEYCIQDXWtbmUGZNxYkOUzt0C0ZYNaKFNX1Eob1j045ITShVHAIhALuEl7uoksdiwuZnYzDmuzF/isDOryh3ym20JseW4DO+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2819},"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"}},"1.0.5":{"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.5","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.4.0"},"devDependencies":{"fava":"^0.3.4","tiny-colors":"^2.2.2","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"tiny-truncate@1.0.5","gitHead":"4f6ef425007ba4ed0d0eb45fad43f3c09a28e40a","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-v69A1bjP624gxzBEvvshTMcwU2tkMcuAOIXAjJj0AG7aR+/YFmBYSw3rEKo0Ma2SCX7coeq9MNnUHQo1wZmMHw==","shasum":"2b44516a327c6f021303fda79ce3126f38e927cc","tarball":"https://registry.npmjs.org/tiny-truncate/-/tiny-truncate-1.0.5.tgz","fileCount":5,"unpackedSize":2819,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDmfl7PfX9Mpb2VG6ZsSJy0dhE9poZDI9A2dJV4owTNcAiBQCnsTFiUfdkEFW3Zu2ajYaAV7M3Vv669jdzBkvQASiA=="}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tiny-truncate_1.0.5_1755876776199_0.5574245145095689"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-06T13:24:37.073Z","modified":"2025-08-22T15:32:56.620Z","1.0.0":"2022-05-06T13:24:37.192Z","1.0.1":"2022-05-06T15:38:10.616Z","1.0.2":"2022-05-06T15:49:43.498Z","1.0.3":"2025-01-12T00:15:18.387Z","1.0.4":"2025-08-04T09:38:18.113Z","1.0.5":"2025-08-22T15:32:56.424Z"},"bugs":{"url":"https://github.com/fabiospampinato/tiny-truncate/issues"},"license":"MIT","homepage":"https://github.com/fabiospampinato/tiny-truncate#readme","keywords":["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.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"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","readmeFilename":"readme.md"}