{"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.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":"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":"91a6d685b155c8d880006380e28b8dbf5a7d5357","bugs":{"url":"https://github.com/fabiospampinato/tiny-truncate/issues"},"homepage":"https://github.com/fabiospampinato/tiny-truncate#readme","_id":"tiny-truncate@1.0.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-XR2fjChcOjuz8Eu56zGwacYTKUHlhuzQ3VpD79yUwvWlLY3gCWorzRfBNXkmbwFjxzfmYZrC00cA4s/ET6mogw==","shasum":"5c94b296cca60b16d1f7eb166d661eefcb063905","tarball":"http://registry-npm.ywwl.com/tiny-truncate/download/tiny-truncate-1.0.2.tgz","fileCount":9,"unpackedSize":3681,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbWa++EqiitdmPx/m4u2b6mJuefB3e+Oh9h1Eg/ciwEQIhAJA9r73dU+gv9kct3O4e3eEx0CuNyOL3DOFXc6QsOJ4Q"}],"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","size":1996,"noattachment":false,"key":"/tiny-truncate/-/tiny-truncate-1.0.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/tiny-truncate_1.0.2_1651852183360_0.6235178026085864"},"_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":1651852183498,"_cnpm_publish_time":1651852183498,"dist-tags":{"latest":"1.0.5"}}