{"_id":"@topcli/wcwidth","_rev":"3-026870174a90da7bf5fc9b1deaa86f40","name":"@topcli/wcwidth","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@topcli/wcwidth","version":"1.0.0","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"GENTILHOMME Thomas","email":"gentilhomme.thomas@gmail.com"},"type":"module","exports":"./index.js","contributors":[{"name":"Woong Jun","email":"woong.jun@gmail.com","url":"http://code.woong.org/"},{"name":"GENTILHOMME Thomas","email":"gentilhomme.thomas@gmail.com"}],"engines":{"node":">=14"},"dependencies":{},"devDependencies":{"@nodesecure/eslint-config":"^1.3.0","@small-tech/esm-tape-runner":"^1.0.3","@small-tech/tap-monkey":"^1.3.0","c8":"^7.10.0","cross-env":"^7.0.2","eslint":"^8.3.0","pkg-ok":"^2.3.1","tape":"^5.3.2"},"license":"MIT","keywords":["wide character","wc","wide character string","wcs","terminal","width","wcwidth","wcswidth"],"directories":{"doc":"docs","test":"test"},"scripts":{"test":"cross-env esm-tape-runner 'test/**/*.js' | tap-monkey","coverage":"c8 -r html npm test","lint":"cross-env eslint index.js","prepublishOnly":"pkg-ok"},"repository":{"type":"git","url":"git+https://github.com/topcli/wcwidth.git"},"bugs":{"url":"https://github.com/topcli/wcwidth/issues"},"homepage":"https://github.com/topcli/wcwidth#readme","gitHead":"7b082c343033d843828661d22904e02326012c9a","_id":"@topcli/wcwidth@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-aitwTXc1LkIS5BXjbKzTM3V2hlYqRLkU+GE97w+JI/njNAZFBiXNTLHX8eE4ZPrBgdPT78q+OmnOKWe6d8A6zA==","shasum":"69176542ef34394ca15651a616c80310d9e651eb","tarball":"https://registry.npmjs.org/@topcli/wcwidth/-/wcwidth-1.0.0.tgz","fileCount":6,"unpackedSize":12738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJho31bCRA9TVsSAnZWagAAo8cP/2FCZ+s4bcPzM80KCCHE\noUB6L1xvMxSn3HxHgpv6rDJM8YigRF409os7XwMn3jMAKSheiwSEGNcNUbOE\nKwlyKyTbVXIePWFtC6AA3XEJL4nCGT69cQ9TxQgVWvq0GJ5/OHlHvDY70OIb\nBtodPBWX0FTRYx79Etgg5ai+Pkj0U13NCIavSaVHH1dqZkLuecwwdUOr0Ej2\nthmuKp3BcPhpBTKewubTWbIsUyHF3i/Ff27YShLPgeMra1MxtEU15StRILxg\npNZJfkrlzRWwlxTyfAil4F1RosHIGaTwf+8ZW/tpQouamX7ta7VzLjMb7+Pw\npL7lwe1eyM9bkA5qegFX6lzNG+9U0WxBzmGKxu0RhT/Pq6d1k6ORtYiIuENu\nnDAttJsCUyWYjiM0bm7xpN0WgrduRRSFHdBW+vINYc9QX48dhNVMXL3Yn6WX\na55aCC8Z79rweizge6wp9bXqzrpNhS1vgGNFg56fnxZSjz/lQNP8R7VWvR4p\nQQ+YdnTxGbx10BQb0ROVjHZf4A9fRilur/4sqZpOezZD6grglmXYjBAYXQgY\ntz7Dzjo0i9Nm3WHtQs74NHioeWN2zdi+44O5bQNRNv7flSKF6WQSkPpHD/og\n0MLr+TiKAGbH62mYr6KXnvLxigXs4PwnJpBsh6+Q1N69hUvdhzrupJ/O7r0z\nG3/s\r\n=4VB/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWCe0ZWlmo5CnbwAcNBCnv7S+kozExbUrPKRzYO6lfPAiAUpBEDZADtau8KAkU6J8UHRdeOLPAm2l8UJE1MGEiJDw=="}]},"_npmUser":{"name":"fraxken","email":"gentilhomme.thomas@gmail.com"},"maintainers":[{"name":"fraxken","email":"gentilhomme.thomas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wcwidth_1.0.0_1638104411622_0.1558517002863129"},"_hasShrinkwrap":false},"1.0.1":{"name":"@topcli/wcwidth","version":"1.0.1","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"GENTILHOMME Thomas","email":"gentilhomme.thomas@gmail.com"},"type":"module","exports":"./index.js","contributors":[{"name":"Woong Jun","email":"woong.jun@gmail.com","url":"http://code.woong.org/"},{"name":"GENTILHOMME Thomas","email":"gentilhomme.thomas@gmail.com"}],"engines":{"node":">=14"},"devDependencies":{"@nodesecure/eslint-config":"^1.5.0","@small-tech/esm-tape-runner":"^2.0.0","@small-tech/tap-monkey":"^1.4.0","c8":"^7.12.0","cross-env":"^7.0.2","eslint":"^8.23.0","pkg-ok":"^3.0.0","tape":"^5.6.0"},"license":"MIT","keywords":["wide character","wc","wide character string","wcs","terminal","width","wcwidth","wcswidth"],"directories":{"doc":"docs","test":"test"},"scripts":{"test":"cross-env esm-tape-runner 'test/**/*.js' | tap-monkey","coverage":"c8 -r html npm test","lint":"cross-env eslint index.js","prepublishOnly":"pkg-ok"},"repository":{"type":"git","url":"git+https://github.com/topcli/wcwidth.git"},"bugs":{"url":"https://github.com/topcli/wcwidth/issues"},"homepage":"https://github.com/topcli/wcwidth#readme","types":"./index.d.ts","gitHead":"c0f55fc89e074170328a0eb43737f9389d0dab9a","_id":"@topcli/wcwidth@1.0.1","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-fS1k22N6DU5DpDfw61Kz0GDb3hNmJAgDcc8fNWSGBETKuuJnx+0fGSeL0w6dL1YRRjSOxWQJLiwW+byfv84EyQ==","shasum":"f7062d6ae71fdac33bbf9e1b566ac3df52947007","tarball":"https://registry.npmjs.org/@topcli/wcwidth/-/wcwidth-1.0.1.tgz","fileCount":6,"unpackedSize":12727,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRgDhVMGAx/0l91JWa1BEh/Y7PSEkKCLDvpzkIbUPZEQIhAJ+KAD5BUcqarGl0uas2BdDgv3GpasrW/iu3M569bBsy"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoezjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpCQ/8ClLvSlQE9HNUn7Uys68SH7Ni5gbbxyECLDiTKkTsHa7SUG+F\r\nyv4DF7ip839cjqaMv1goroPqJgJNdi8dyutVh7amrSKjvH9Kg++lQMKXdi3f\r\ntW7Ey99rQNMVyZOonsYFnOnrwC29h2URhTHWd2njo9Nis7Q91NhZlM7cy6F2\r\n+CRY7t1iUW2DCCc7Uu3Iv5xHiHsUvwfRgknK/Qu+0Tv9LBWJ+V9NEx1ETG5j\r\nG4aSp4I30LUJUayt+hW8wI+vLpx9ATN5Hp+4AtYPTgxo/vBpwbA/1j2wtKoo\r\n4vUpKMQF2QoYszUdDMgQ5pGEeH/GCk7TASEUVsnskuVH0TxrHPTPtAuc+yRc\r\nrVdfqGi6PLBkkxEhE4UPe2eEmPgJ76m81o4PWCqRpJwJfY9HeENNbAFGyvZV\r\np6usakaouosAcsgVTsRNHCNDPUnhUtJxhyrut0gx3zCxXMjvxq/RtbeTbgal\r\nz0VMENRUw7NnbvG/IOHDj7KfNR4Y5SUaKczLnG8YIuPow9EO3tEr8j+9sM59\r\n5c0/wbT/j0XSvj2g+woZSengZqZloq+A0cO1XJqrTqkUel/WDYOEBnll1UV8\r\nPnq0KcoYhcK84Qt62vQTSPILzFzstLgkMYrfLzxnSDAQJGeesw9z/zkzxB+H\r\nQyVZGusb3EEgRPiix1yRbiTAXZ5ackJEvVU=\r\n=9hfy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"fraxken","email":"gentilhomme.thomas@gmail.com"},"maintainers":[{"name":"pierred","email":"pierredemailly.pro@gmail.com"},{"name":"fraxken","email":"gentilhomme.thomas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wcwidth_1.0.1_1671556322916_0.3519569386896817"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-28T13:00:11.569Z","1.0.0":"2021-11-28T13:00:11.787Z","modified":"2022-12-20T17:12:03.168Z","1.0.1":"2022-12-20T17:12:03.063Z"},"maintainers":[{"name":"pierred","email":"pierredemailly.pro@gmail.com"},{"name":"fraxken","email":"gentilhomme.thomas@gmail.com"}],"description":"Port of C's wcwidth() and wcswidth()","homepage":"https://github.com/topcli/wcwidth#readme","keywords":["wide character","wc","wide character string","wcs","terminal","width","wcwidth","wcswidth"],"repository":{"type":"git","url":"git+https://github.com/topcli/wcwidth.git"},"contributors":[{"name":"Woong Jun","email":"woong.jun@gmail.com","url":"http://code.woong.org/"},{"name":"GENTILHOMME Thomas","email":"gentilhomme.thomas@gmail.com"}],"author":{"name":"GENTILHOMME Thomas","email":"gentilhomme.thomas@gmail.com"},"bugs":{"url":"https://github.com/topcli/wcwidth/issues"},"license":"MIT","readme":"# wcwidth\r\n![version](https://img.shields.io/badge/dynamic/json.svg?url=https://raw.githubusercontent.com/TopCli/wcwidth/master/package.json&query=$.version&label=Version)\r\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/TopCli/wcwidth/commit-activity)\r\n[![mit](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/TopCli/wcwidth/blob/master/LICENSE)\r\n![build](https://img.shields.io/github/workflow/status/TopCli/wcwidth/Node.js%20CI)\r\n\r\nDetermine columns needed for a fixed-size wide-character string\r\n\r\n> wcwidth is a simple JavaScript port of [wcwidth](http://man7.org/linux/man-pages/man3/wcswidth.3.html) implemented in C by Markus Kuhn.\r\n>\r\n> JavaScript port [originally](https://github.com/mycoboco/wcwidth.js) written by Woong Jun <woong.jun@gmail.com> (http://code.woong.org/)\r\n\r\n## Why\r\n\r\nThis package is a fork of [wcwidth](https://github.com/timoxley/wcwidth#readme).\r\n\r\n- Drop old Node.js version support.\r\n- Drop useless `defaults` package wich introduce an indirect dependencies.\r\n- Cleanup npm tarball (only ship required files).\r\n\r\n## Requirements\r\n- [Node.js](https://nodejs.org/en/) v14 or higher\r\n\r\n## Getting Started\r\n\r\nThis package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).\r\n\r\n```bash\r\n$ npm i @topcli/wcwidth\r\n# or\r\n$ yarn add @topcli/wcwidth\r\n```\r\n\r\n## Usage example\r\n\r\n```js\r\nimport wcwidth from \"@topcli/wcwidth\";\r\n\r\n'한'.length    // => 1\r\nwcwidth('한');   // => 2\r\n\r\n'한글'.length    // => 2\r\nwcwidth('한글'); // => 4\r\n```\r\n\r\n`wcwidth()` and its string version, `wcswidth()` are defined by IEEE Std\r\n1002.1-2001, a.k.a. POSIX.1-2001, and return the number of columns used\r\nto represent the given wide character and string.\r\n\r\nMarkus's implementation assumes the wide character given to those\r\nfunctions to be encoded in ISO 10646, which is almost true for\r\nJavaScript's characters.\r\n\r\n[Further explaination here](https://github.com/timoxley/wcwidth/tree/master/docs)\r\n\r\n## API\r\nTBC\r\n\r\n## Contributors ✨\r\n\r\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\r\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\r\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\r\n\r\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\r\n\r\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\r\n<!-- prettier-ignore-start -->\r\n<!-- markdownlint-disable -->\r\n<table>\r\n  <tr>\r\n    <td align=\"center\"><a href=\"https://www.linkedin.com/in/thomas-gentilhomme/\"><img src=\"https://avatars.githubusercontent.com/u/4438263?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Gentilhomme</b></sub></a><br /><a href=\"https://github.com/TopCli/wcwidth/commits?author=fraxken\" title=\"Code\">💻</a> <a href=\"https://github.com/TopCli/wcwidth/commits?author=fraxken\" title=\"Documentation\">📖</a> <a href=\"https://github.com/TopCli/wcwidth/pulls?q=is%3Apr+reviewed-by%3Afraxken\" title=\"Reviewed Pull Requests\">👀</a> <a href=\"#security-fraxken\" title=\"Security\">🛡️</a> <a href=\"https://github.com/TopCli/wcwidth/issues?q=author%3Afraxken\" title=\"Bug reports\">🐛</a></td>\r\n  </tr>\r\n</table>\r\n\r\n<!-- markdownlint-restore -->\r\n<!-- prettier-ignore-end -->\r\n\r\n<!-- ALL-CONTRIBUTORS-LIST:END -->\r\n\r\n## License\r\nMIT\r\n","readmeFilename":"README.md"}