{"name":"widest-line","version":"4.0.0","description":"Get the visual width of the widest line in a string - the number of columns required to display it","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/widest-line.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["string","character","unicode","width","visual","column","columns","fullwidth","full-width","full","ansi","escape","codes","cli","command-line","terminal","console","cjk","chinese","japanese","korean","fixed-width"],"dependencies":{"string-width":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"f81355cea22a4f4080258d802a81c6669c30c765","bugs":{"url":"https://github.com/sindresorhus/widest-line/issues"},"homepage":"https://github.com/sindresorhus/widest-line#readme","_id":"widest-line@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-g8sERtbgIEyfLAAog9CDLWsV9zs3Zbp7InQUYheKGDd+J/0HRxsjzx5TVAJK8Xaa2obLCkK3kH+q9j/dukjb3A==","shasum":"4b19a5da2b5c4f93704f34539395a0f4615da9ea","tarball":"http://registry-npm.ywwl.com/widest-line/download/widest-line-4.0.0.tgz","fileCount":5,"unpackedSize":3326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggAGdCRA9TVsSAnZWagAAehIP/RjmPuclr5ju811b0Gjw\nTexPn2sxOcYO/OZPlaltTzvB084R+xJmrGjMp/fwj+95Nu1b/SauH0okOcGv\nNbBTZntD+WvqU5GyUqd1XJZPpC/Eq0iIXwMRRWjChqCwvT06w8vO0nL5z4B3\nSE5BGS62eJ1Oqs99kYszGCVF8fPLpRIc+6W1H3e2OsvN9akrNgEF3SZb07JE\nYxpgIp75Y6eklMcQDROkDBl1q/FI5/p7nVy1A+SGn8/gNzBEBM8EjAbCMyZb\nbQAyIU07bVrk1383N2oBNK2IpDtUKiEWdxrIg41x6ml+2YS8T9H4g8AAWskg\n5x9P4Q0gkoY3zYfZ4Rfflg+/l2PWbpnw71MxCk2WGdPI8JDKwkkGww8DCdIN\nj2Tzvp8RUiiOX3Tvl2hrHJWnMpprwFDxU3JYZZ5Ke9twYjsbo/bjTd7dC1DK\nah0BX3el/wD0L+iuZAkhaSU8vmYfab1/wLvKsZLBUXpnAK41yWha1y7G2mi5\npfyHFlCD56eZWrGilYRM3CSLUsIjgbA69fZqWsL0MnFwkh+1jOEHIPQOqtsd\nzFYvGcGOd+E53r/wqV2KVuUMHtovNv2BA6r1i/SPlxNJ/bJ/Pr4+c8dpig7c\n3c4jLOQzJJ2jBg0xZybqtzi8MAPvEcNwSTq+1zazTmfbrqDJDewpJBUltt8b\n4xvN\r\n=MW9G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD26ffSuHdJhI44YrEwb3Vua9YD19rtqqJBIxu97L8AgIhAOQt2KZgLXbDM02TPGd0sU+mXjbgCh7AyrnpC4IGMT0H"}],"size":1769,"noattachment":false,"key":"/widest-line/-/widest-line-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/widest-line_4.0.0_1619001756789_0.7917604601234498"},"_hasShrinkwrap":false,"readme":"# widest-line\n\n> Get the visual width of the widest line in a string - the number of columns required to display it\n\nSome Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.\n\nUseful to be able to know the maximum width a string will take up in the terminal.\n\n## Install\n\n```sh\nnpm install widest-line\n```\n\n## Usage\n\n```js\nimport widestLine from 'widest-line';\n\nwidestLine('古\\n\\u001B[1m@\\u001B[22m');\n//=> 2\n```\n\n## Related\n\n- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string\n","publish_time":1619001756936,"_cnpm_publish_time":1619001756936,"dist-tags":{"latest":"6.0.0"}}