{"name":"ansi-truncate","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/ansi-truncate.git"},"description":"A tiny function for truncating a string that may contain ANSI escape sequences.","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":["ansi","truncate"],"devDependencies":{"fava":"^0.0.6","tiny-colors":"^2.0.1","tsex":"^1.1.2","typescript":"^4.6.4"},"gitHead":"301c28df49a8ae1c7306906461c8e1089390e4ab","bugs":{"url":"https://github.com/fabiospampinato/ansi-truncate/issues"},"homepage":"https://github.com/fabiospampinato/ansi-truncate#readme","_id":"ansi-truncate@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-Snc3vHc+bBGSPeNz4o013SQeUnNjvigkre2hWRwN/AzfOpxi+EGHpwZTpkzjWcj/3EfahanboSKq135otLWy3Q==","shasum":"899bc0c964c3c8ee29f0acaf471820a9f86c5ef5","tarball":"http://registry-npm.ywwl.com/ansi-truncate/download/ansi-truncate-1.0.0.tgz","fileCount":18,"unpackedSize":7149,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBr2eP0fqg6e2JuocdviWqxtSZ/GcNBC8S0Yu4ASQ5RXAiB1AxBa4owc9gYWd3nIM7C38eDX0jDTVQn3um6ke6ntlQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidRn2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmravQ//evuXy4cic8zZ6Y+Qp/NPwYeYF7Ob+0kZxJummR8V1mPoA7IS\r\n2jEFZE8FbOJYfx+qFfmvxLWY4QUdTQEg2tWAKQQL9TdDccKRvs1luqBiRKTp\r\noDS7q3H6zmv17vAEnz4U87FmJstJx+FRyjTAzibPHvL26FsQPuHXNz+jJwlN\r\noSKDk8p8q3xoNJbd/PyEVZy5QxRLx30vUinD7Y3LFdO2vEveXxBDmFWwbbgx\r\n+blFfxCMEbWYQmOQEaU3iUAYSn6S0ZICf6W4cV2aWdekSx5vxkjSUCCNGlCw\r\n69gGGueinE35/MfAO2B1gMAx2qtmpSPM0V/ipu5bsQ5fxUPHyYnsBnVVZeHN\r\npDdtZoyYifb4qIXsH1y1aBfuO4hgOPxrVmCNy1xaIOIi9NKuaj8AfQ6CGrRL\r\n09kP8hlUYAXb9y2AKw0hQ9oAdkYPKEC6wDTDHSACOgcNFR1btKPIQ0y83YBa\r\nJlIVWipjk/cd+juSiN/y5IKbyCCbDfcwRAEypIYgxwjyC8PvyaKLfpEIH2mo\r\nZ0h4SOKJ8iJaLINM4Pw73r+vFbsxp8J1CZJaEDgGgOzXn/jXFAivOipRfcSj\r\naV3dphvPF42KqUvCHWBrGkwYfqejxKFYGN7n6z4RxIRpR1mxYHwX0OF12urs\r\nZ2fH1k/QawKZJ5CA4Luusu7KHbX+VCgle0I=\r\n=NRuK\r\n-----END PGP SIGNATURE-----\r\n","size":3024,"noattachment":false,"key":"/ansi-truncate/-/ansi-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/ansi-truncate_1.0.0_1651841526489_0.6792330791849539"},"_hasShrinkwrap":false,"readme":"# ANSI Truncate\n\nA tiny function for truncating a string that may contain ANSI escape sequences.\n\n## Install\n\n```sh\nnpm install --save ansi-truncate\n```\n\n## Usage\n\n```ts\nimport colors from 'tiny-colors';\nimport truncate from 'ansi-truncate';\n\ntruncate ( colors.red ( 'foo' ), 2 ); // => Same as: colors.red ( 'f…' );\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1651841526635,"_cnpm_publish_time":1651841526635,"dist-tags":{"latest":"1.4.0"}}