{"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.0","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.0"},"devDependencies":{"fava":"^0.0.6","tiny-colors":"^2.0.1","tsex":"^1.1.2","typescript":"^4.6.4"},"gitHead":"508468df9b51f6ac181575c67d4712e250469cd4","bugs":{"url":"https://github.com/fabiospampinato/tiny-truncate/issues"},"homepage":"https://github.com/fabiospampinato/tiny-truncate#readme","_id":"tiny-truncate@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-G8pNjQJghmoLCY6h37sBnDEAXmeKYGIiWNHCJJ77eQ01fqUq0ODhgevY3Go4q5T0xb6XMZ9rZAfR9wwuOvKotQ==","shasum":"a401ecec8b8fd5605cc7703b367eeb17cc86db1e","tarball":"http://registry-npm.ywwl.com/tiny-truncate/download/tiny-truncate-1.0.0.tgz","fileCount":9,"unpackedSize":3574,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQK1M/NJCgSSUNe5S3gTYnuC8ZFzbqrOzMQbxqwj0/MAiBEGaEecCI2pHkJmNpvkCKbgbHJr5a/j+rdSufA9etYZQ=="}],"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","size":1950,"noattachment":false,"key":"/tiny-truncate/-/tiny-truncate-1.0.0.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.0_1651843477074_0.27758062181950716"},"_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":1651843477192,"_cnpm_publish_time":1651843477192,"dist-tags":{"latest":"1.0.5"}}