{"name":"widest-line","version":"2.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"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":"^2.1.1"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"af57e1e5eb6b7d8542eac408c64b7c34207d0d7e","bugs":{"url":"https://github.com/sindresorhus/widest-line/issues"},"homepage":"https://github.com/sindresorhus/widest-line#readme","_id":"widest-line@2.0.0","_shasum":"0142a4e8a243f8882c0233aa0e0281aa76152273","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0142a4e8a243f8882c0233aa0e0281aa76152273","tarball":"http://registry-npm.ywwl.com/widest-line/download/widest-line-2.0.0.tgz","integrity":"sha512-qtJMTOlxGeYU2euDtbbhxBMCSDM02Yd+0W1CShkwpf4mufD9Jmc33cdQjYyZXSHvArpEhlaCqI/gxob/J4/AyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArTy+7YVscGFwnl32oxsZ61+Zodli9cIdxFMy9u6H80AiEA7y8zycRHgZqfYwP69ztdTzFO50/5XxgprO3hR1U+EnI="}],"size":1711,"noattachment":false,"key":"/widest-line/-/widest-line-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/widest-line-2.0.0.tgz_1512075148854_0.25011543300934136"},"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":1512075149986,"_cnpm_publish_time":1512075149986,"dist-tags":{"latest":"6.0.0"}}