{"name":"widest-line","version":"3.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":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"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":"^4.0.0"},"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.5.0","xo":"^0.24.0"},"gitHead":"7d5a88fc022524bd4593d8a4b143e16823125219","bugs":{"url":"https://github.com/sindresorhus/widest-line/issues"},"homepage":"https://github.com/sindresorhus/widest-line#readme","_id":"widest-line@3.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Nnp08mP0T9qYxi6YZ9EqX5mhfQWGVO0q525bP8P2gtSmuDyfkfECfkH9J4LPK4w0F2IROlcMrFgYYcA8ckxltQ==","shasum":"3cc9ab65c4d0382cf05909900f9aa50328eba947","tarball":"http://registry-npm.ywwl.com/widest-line/download/widest-line-3.0.0.tgz","fileCount":5,"unpackedSize":3475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcj1hFCRA9TVsSAnZWagAAmawP/19Znkw2yr07zJsDIOQA\n4C/ihlDw51F6Pu+8wyK2AEi/mLJKt8LxKRiUVM4jn6rKT+FmV9ythHghR+/s\nT3KIZfzhAs45w1NKdFeHQMh5glge07CJiuEopo01s7w8n+iMX55lsx84a5Pf\nio3tpwG3K4CpPipa4IaiDjQ2QxLdOBv4kmGFrLesjMbrBx9zy2bUQ0abzaiC\nQwGRnQAotUwiRqysvRqRRtJhc7PRZwIw+RBnu+NOrODE2bGylfL9a6kkZlgk\nlcuaBIMLtC6Tx79Y6XWG5gWDOGKbOyS391PN5mtGmXyoUVc1tcAxVWXe2yLS\nIOAzMqoC4hPF/D6Qy1JHBwqjQpNQkpjIIk5rpmooJKdrJP+D6/6lGAbQ8sGN\nqwyHz0PFgAAiRXm46QnOAQ8Ez7qXLN53m43qzNWXvkSZRxCfyYU04dAM0vNq\nhyC/cDmrZ1glpHbgvV2wCG21nrC4OYTZRwlh0vZ128YB+yJKYrsz92PGhMTe\nqopYJoMKTc6WinYNZ2z6fIxeOnvfNkKR4a49/sWGFNQZf1ANN05SLe7aYagv\n/GBLo5LE+1vjBkpWASdKSbPUTXflqh8/AhHdKZYd4VATvMIMcdb9GmwEuejU\nj1Z2rfsvbDxmQsSPneUxldO2ybV98IMzcY/g1ntGxGVuyTa8ZfNSLdeZGvuk\nJG8O\r\n=riN3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuQNwQGyE+BGzJKQF8UUJ8jmqJ/O1DGQDu7k7dufnJoAIgBLJe+Q4Mj2sDV5/4oVlbbdmsVZrjnpIWYqAGeARNYbQ="}],"size":1850,"noattachment":false,"key":"/widest-line/-/widest-line-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/widest-line_3.0.0_1552898116695_0.8710302790281419"},"_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":1552898116856,"_cnpm_publish_time":1552898116856,"dist-tags":{"latest":"6.0.0"}}