{"name":"widest-line","version":"1.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":"https://github.com/sindresorhus/widest-line"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["string","str","character","char","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":"^1.0.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"8193ed602f6c06939099e574b92828edb896bb8e","bugs":{"url":"https://github.com/sindresorhus/widest-line/issues"},"homepage":"https://github.com/sindresorhus/widest-line","_id":"widest-line@1.0.0","_shasum":"0c09c85c2a94683d0d7eaf8ee097d564bf0e105c","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0c09c85c2a94683d0d7eaf8ee097d564bf0e105c","tarball":"http://registry-npm.ywwl.com/widest-line/download/widest-line-1.0.0.tgz","integrity":"sha512-r5vvGtqsHUHn98V0jURY4Ts86xJf6+SzK9rpWdV8/73nURB3WFPIHd67aOvPw2fSuunIyHjAUqiJ2TY0x4E5gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4/xOf0LVnTLQqimJoSHN494G0B9kZQHyNoLd69fIY8AiAiLmcrbIhKg3fMRwnT1NMC2wDiZqB+zDeq8llU8PeJJg=="}],"size":1767,"noattachment":false,"key":"/widest-line/-/widest-line-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"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":1446636675944,"_cnpm_publish_time":1446636675944,"dist-tags":{"latest":"6.0.0"}}