{"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.","version":"1.0.1","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":"npm run clean && npm run compile && npm run test"},"keywords":["tiny","truncate"],"dependencies":{"ansi-truncate":"^1.0.1"},"devDependencies":{"fava":"^0.0.6","tiny-colors":"^2.0.1","tsex":"^1.1.2","typescript":"^4.6.4"},"gitHead":"ce73ae8d964bbaefc63b0e47517c285afab9d97e","bugs":{"url":"https://github.com/fabiospampinato/tiny-truncate/issues"},"homepage":"https://github.com/fabiospampinato/tiny-truncate#readme","_id":"tiny-truncate@1.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-zUrNqSEHgvdydTLp/AJtHBmk+cL2mx9i4lt+9iHLNhRuQkxhz7d41O5Vm9t69TsBLv/oV0LASzJDl5JowTyk0w==","shasum":"7127003eedabb997d296511f13f516d126ced8de","tarball":"http://registry-npm.ywwl.com/tiny-truncate/download/tiny-truncate-1.0.1.tgz","fileCount":9,"unpackedSize":3667,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDziNjgailBv+8zL5WwcWcPOveH3TBy67E5WbrSRu/1ugIhAJPbVoNNWrGnRGBlYr1pD+BxZo0CJWuG++93Lj3SKpmi"}],"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","size":1986,"noattachment":false,"key":"/tiny-truncate/-/tiny-truncate-1.0.1.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiny-truncate_1.0.1_1651851490440_0.34138837528980237"},"_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 --save tiny-truncate\n```\n\n## Usage\n\n```ts\nimport colors from 'tiny-colors';\nimport truncate from 'tiny-truncate';\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":1651851490616,"_cnpm_publish_time":1651851490616,"dist-tags":{"latest":"1.0.5"}}