{"maintainers":[{"name":"anonymous","email":"takuto.wada@gmail.com"}],"keywords":["string","unicode","width"],"dist-tags":{"latest":"1.2.0"},"author":{"name":"Takuto Wada","email":"takuto.wada@gmail.com","url":"https://github.com/twada"},"description":"calculates width of given string","readme":"[![power-assert][power-assert-banner]][power-assert-url]\n\n[![Build Status][travis-image]][travis-url]\n[![NPM version][npm-image]][npm-url]\n[![License][license-image]][license-url]\n\n\nCalculates width of given string. Treat ambiguous-width characters as fullwidth (= `2`) by default.\n\n\nUSAGE\n---------------------------------------\n\n```js\nvar stringWidth = require('power-assert-util-string-width');\nstringWidth('abcde'); //=> 5\nstringWidth('あいうえお'); //=> 10\nstringWidth('ｱｲｳｴｵ'); //=> 5\nstringWidth('※脚注');  //=> 6\n// stringWidth.narrow treats ambiguous-width characters as narrow (= `1`)\nstringWidth.narrow('※脚注');  //=> 5\n```\n\n\nINSTALL\n---------------------------------------\n\n```sh\n$ npm install --save-dev power-assert-util-string-width\n```\n\n\nAUTHOR\n---------------------------------------\n* [Takuto Wada](https://github.com/twada)\n\n\nLICENSE\n---------------------------------------\nLicensed under the [MIT](https://github.com/twada/power-assert-runtime/blob/master/LICENSE) license.\n\n\n[power-assert-url]: https://github.com/power-assert-js/power-assert\n[power-assert-banner]: https://raw.githubusercontent.com/power-assert-js/power-assert-js-logo/master/banner/banner-official-fullcolor.png\n\n[travis-url]: https://travis-ci.org/twada/power-assert-runtime\n[travis-image]: https://secure.travis-ci.org/twada/power-assert-runtime.svg?branch=master\n\n[npm-url]: https://npmjs.org/package/power-assert-util-string-width\n[npm-image]: https://badge.fury.io/js/power-assert-util-string-width.svg\n\n[license-url]: https://github.com/twada/power-assert-runtime/blob/master/LICENSE\n[license-image]: https://img.shields.io/badge/license-MIT-brightgreen.svg\n","repository":{"type":"git","url":"git+https://github.com/twada/power-assert-runtime.git"},"bugs":{"url":"https://github.com/twada/power-assert-runtime/issues"},"license":"MIT","versions":{"1.1.0":{"name":"power-assert-util-string-width","description":"calculates width of given string","version":"1.1.0","author":{"name":"Takuto Wada","email":"takuto.wada@gmail.com","url":"https://github.com/twada"},"bugs":{"url":"https://github.com/twada/power-assert-runtime/issues"},"dependencies":{"eastasianwidth":"^0.1.1"},"devDependencies":{"mocha":"^2.4.5"},"files":["README.md","index.js"],"homepage":"https://github.com/twada/power-assert-runtime","keywords":["string","width","unicode"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/twada/power-assert-runtime.git"},"scripts":{"test":"mocha"},"_id":"power-assert-util-string-width@1.1.0","_shasum":"63d2c714c0cddb8dce0e0d7cc5f9851be94ddd98","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"anonymous","email":"takuto.wada@gmail.com"},"maintainers":[{"name":"anonymous","email":"takuto.wada@gmail.com"}],"dist":{"shasum":"63d2c714c0cddb8dce0e0d7cc5f9851be94ddd98","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/power-assert-util-string-width/-/power-assert-util-string-width-1.1.0.tgz","integrity":"sha512-JD1ithPGUd8VzYgWa4whXRCCww5wxev5Z3dlJDpwnHoHAqpUuOEMZyjN3gHsKVwbZDI55Y8cwEpQJURS6zuQww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyIKidAes0jcGSl5U3RzD45xmsyZq01rmFjPhAuFCNRAiEAqHQMzi7ooZzKWn11KNs1nSzJN2ILsZhW6RWiUBxlBMg="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/power-assert-util-string-width-1.1.0.tgz_1475846606716_0.6354274281766266"},"directories":{}},"1.1.1":{"name":"power-assert-util-string-width","description":"calculates width of given string","version":"1.1.1","author":{"name":"Takuto Wada","email":"takuto.wada@gmail.com","url":"https://github.com/twada"},"bugs":{"url":"https://github.com/twada/power-assert-runtime/issues"},"dependencies":{"eastasianwidth":"^0.1.1"},"devDependencies":{"mocha":"^3.0.0"},"files":["README.md","index.js"],"homepage":"https://github.com/twada/power-assert-runtime","keywords":["string","width","unicode"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/twada/power-assert-runtime.git"},"scripts":{"test":"mocha"},"_id":"power-assert-util-string-width@1.1.1","_shasum":"be659eb7937fdd2e6c9a77268daaf64bd5b7c592","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"anonymous","email":"takuto.wada@gmail.com"},"maintainers":[{"name":"anonymous","email":"takuto.wada@gmail.com"}],"dist":{"shasum":"be659eb7937fdd2e6c9a77268daaf64bd5b7c592","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/power-assert-util-string-width/-/power-assert-util-string-width-1.1.1.tgz","integrity":"sha512-9fMr0q85s5v+oA9zNtDkkldz6oYzRaF2lQxPqEa3Qj+vAXLFKsSMONQY8O0hjUQYH60lAP0DZkklW68Gjsq3Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBepFgWGCz5mjUjdXB9/bnQ2JpuOZ1/WPqdWRjNeIs5/AiAyzFbMUS4+NiepnWvXCmdifcLrDA0ZV7kE2SuWIW/1Lg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/power-assert-util-string-width-1.1.1.tgz_1478765802490_0.6861249902285635"},"directories":{}},"1.2.0":{"name":"power-assert-util-string-width","description":"calculates width of given string","version":"1.2.0","author":{"name":"Takuto Wada","email":"takuto.wada@gmail.com","url":"https://github.com/twada"},"bugs":{"url":"https://github.com/twada/power-assert-runtime/issues"},"dependencies":{"eastasianwidth":"^0.2.0"},"devDependencies":{"mocha":"^5.0.0"},"files":["README.md","index.js"],"homepage":"https://github.com/twada/power-assert-runtime","keywords":["string","unicode","width"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/twada/power-assert-runtime.git"},"scripts":{"test":"mocha"},"_id":"power-assert-util-string-width@1.2.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"anonymous","email":"takuto.wada@gmail.com"},"maintainers":[{"name":"anonymous","email":"takuto.wada@gmail.com"}],"dist":{"integrity":"sha512-lX90G0igAW0iyORTILZ/QjZWsa1MZ6VVY3L0K86e2eKun3S4LKPH4xZIl8fdeMYLfOjkaszbNSzf1uugLeAm2A==","shasum":"6e06d5e3581bb876c5d377c53109fffa95bd91a0","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/power-assert-util-string-width/-/power-assert-util-string-width-1.2.0.tgz","fileCount":3,"unpackedSize":3194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbH3KPCRA9TVsSAnZWagAASWoP/2DAY4bPJYR3a0eatJT1\nzBnZO/ROi9R6Lzp8l92Zc+ZDBtiDemJqGm1nfwOBkNYrFWjsN+t+oChHxmOR\nH7De8NMUIpIdU86kWXEb+H2DMP1ufYcy6jQwSz7EO3y4kMLDdBXBfyQWJY7k\nzNbycgPXm0+uV0gBxghL+wjERZfgJzsUN+wwERZP+yB3dIKCHQwMFf0wPauL\ncayhfCCZglrPHEJbBDTgNwZko8WLIvG6MBRtzG0OQyahuh0fkotRjdJ4PPMy\nAz6dM/EIfUUAbnyasXzoYi7BG7exE3NXooq6iJjIHa+T34nDlxzPY2ZPXByl\n1ye3wr4U+nCG7heeDsZ2BS32xTiZRBa5Z6BCIrYXmNFe0UUg8OyhNEP+RU4z\nxsk5i62DNYcftUWrPGLg0nOZeCKyVdc8Jm0FTS8zqaRp6DQOo4hXlipYXK7n\n7Tb3sq7uE3quQecbQ7TK/mW46ipRjrVgpc79m3r3XXjhPZRw8HB3OqQ7pyJo\n91DpHYfwP/PXdM5OUzWIldr6p9Ff83C4439U1ygjEwktWwR5u63fbyrcytfn\nPvUxk1um23QPu++VaVWVta3i14SjbLpvRu2RrEcpNEGeZw/VvkcU2f4Dam7c\n6zNQs8LMhegFKXnv36LQ6byqfLIejUf6QWUGrEE03O/l8s3FLp8dwMoexnCs\ndwF5\r\n=BRUq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIuJOqZJpA0i+QFcmMn7Fs8pVMzn2J9I31mIPm7xx1tgIhANiakpYAquVOSumVencX4JXec+L+FtimrXjEjaz/EClM"}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/power-assert-util-string-width_1.2.0_1528787598505_0.9647161817992878"},"_hasShrinkwrap":false}},"name":"power-assert-util-string-width","time":{"modified":"2022-06-24T12:19:51.170Z","created":"2016-10-07T13:23:30.491Z","1.1.0":"2016-10-07T13:23:30.491Z","1.1.1":"2016-11-10T08:16:42.714Z","1.2.0":"2018-06-12T07:13:18.928Z"},"readmeFilename":"README.md","homepage":"https://github.com/twada/power-assert-runtime"}