{"_id":"@cjser/widest-line__v5_0_0","name":"@cjser/widest-line__v5_0_0","dist-tags":{"latest":"5.0.0-cjser.2"},"versions":{"5.0.0-cjser.2":{"name":"@cjser/widest-line__v5_0_0","version":"5.0.0-cjser.2","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://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":">=18"},"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":{"@cjser/string-width__v7_2_0":"7.2.0-cjser.2"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"5.0.0","cjserVersion":2,"original":{"name":"widest-line","version":"5.0.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/widest-line","dependencies":{"string-width":"^7.0.0"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/widest-line__v5_0_0@5.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-VOUOvI/RPUI5GYStv+DlG+3VeJ4Uv7yMnQFn4L/lV4y/1k5s0jlbhfcx0jPUL4sXsuVdlBUSirJu5onIm8nMgQ==","shasum":"74b6aaa9cdccfac6f767e1538eac48bfdd6335e2","tarball":"https://registry.npmjs.org/@cjser/widest-line__v5_0_0/-/widest-line__v5_0_0-5.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":6383,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFEGIi56P0ajjoksHT+YJx3BrjOePh0QCH3xPIn4U7tjAiEAhOhB6fVNjSUfw6aqFJMWtXlldx9iuva8bdY5iM+5a4Y="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/widest-line__v5_0_0_5.0.0-cjser.2_1778160602875_0.7324671662990059"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:30:02.734Z","5.0.0-cjser.2":"2026-05-07T13:30:03.012Z","modified":"2026-05-07T13:30:03.331Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Get the visual width of the widest line in a string - the number of columns required to display it","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"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/widest-line\n","readmeFilename":"readme.md","_rev":"1-8a80759d555f8f83fe842ea80d47c175"}