{"name":"widest-line","version":"4.0.1","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":"https://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.1"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.39.1"},"gitHead":"5a9b9a9d328cb20fee45823a13538eef8a976289","bugs":{"url":"https://github.com/sindresorhus/widest-line/issues"},"homepage":"https://github.com/sindresorhus/widest-line#readme","_id":"widest-line@4.0.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"integrity":"sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==","shasum":"a0fc673aaba1ea6f0a0d35b3c2795c9a9cc2ebf2","tarball":"http://registry-npm.ywwl.com/widest-line/download/widest-line-4.0.1.tgz","fileCount":5,"unpackedSize":3334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3BS0CRA9TVsSAnZWagAAVVQP/RFZwYABZb0VJlUIMXaE\nXF6RrvfeAVvcMeXimuDTNPze29Jx7r0aNkg9J3qbdbBNWgpSJJGw492HkN7c\nDJzlTAD0ynTqzJmMTdakMyQSWDoMrPK1uDbizGwSyZb3TjY4vnvAfSDVX8yS\nOBZLTNh52VNeSuSTbMXdFxcji0Vtm5pntYN6KLhQENaO+SCzqDHgeimAYmCW\nacLeUpncNCGuz1XPuyqbonyt2BXOoZilrzgow5Tlp+yGXtRhcLnMLFZH3652\nQhMlyIuQMeOhCY7gO2I25zxboVkEtBm5wPk1AOTt0n9WYCgfFI0HT4MWPo8/\neiePATyFPYq2T2M5q5ew1tHd7522gZd55PbrRYV6VK9zJr7RdL/MCdAUqPu1\n4SGormEY0lQTm+8KpDhzU1F5D/c/mo1RgxSZwDKXIpyWiTvqdFUza6LH78gJ\nBY9sT6t6nim70w5RsCbLNLlwYPLaXtDwvzSq9fMAKupbJYiPlMqrNJW2WAzV\nywsY6krhZLPtlwyMTtKvPvrLsg0PswoAbFd4XiGjlKo9d6RG9mjooZhwOu9l\nEhEC77ZWwJO8ZfbTMOTP9mV34N9PJ9B4EsUH/IjJo5H5i9hVVZNbrGJAKCRF\nMdGP9MsNZJGLkpVPvsnGcG4oiE9ZmPpl24AnFKkymWO0/zC4z5/PT8fXX+vc\nSxbS\r\n=Gk59\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/oIUwMKvLxtd0o4kU+RIV30kZpIrEMX1l3M4Cg+d05gIgex8rhLETc/xQhd0UM1HjxMmUK9odp3DSEcHY2pujkfg="}],"size":1747,"noattachment":false,"key":"/widest-line/-/widest-line-4.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/widest-line_4.0.1_1634023777773_0.6243834298441386"},"_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":1634023777915,"_cnpm_publish_time":1634023777915,"dist-tags":{"latest":"6.0.0"}}