1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-02 17:01:14 -05:00
denoland-deno/tests/registry/npm/eastasianwidth/registry.json

2 lines
2.6 KiB
JSON
Raw Normal View History

{"name":"eastasianwidth","description":"Get East Asian Width from a character.","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"eastasianwidth","version":"0.2.0","description":"Get East Asian Width from a character.","main":"eastasianwidth.js","files":["eastasianwidth.js"],"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/komagata/eastasianwidth.git"},"author":{"name":"Masaki Komagata"},"license":"MIT","devDependencies":{"mocha":"~1.9.0"},"gitHead":"b89f04d44dc786885615e94cd6e2ba1ef7866fa4","bugs":{"url":"https://github.com/komagata/eastasianwidth/issues"},"_id":"eastasianwidth@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","dist":{"integrity":"sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==","shasum":"696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb","tarball":"http://localhost:4260/eastasianwidth/eastasianwidth-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNcp1SIwsuxLGmN5jJS4ZVTyfWVfHzoC3URtimwSMusAiEA4eLB2KCWmzEszVyewyStQBj4U38rvuXvf4AcXnx/IjM="}]},"directories":{}}},"readme":"# East Asian Width\n\nGet [East Asian Width](http://www.unicode.org/reports/tr11/) from a character.\n\n'F'(Fullwidth), 'H'(Halfwidth), 'W'(Wide), 'Na'(Narrow), 'A'(Ambiguous) or 'N'(Natural).\n\nOriginal Code is [東アジアの文字幅 (East Asian Width) の判定 - 中途](http://d.hatena.ne.jp/takenspc/20111126#1322252878).\n\n## Install\n\n $ npm install eastasianwidth\n\n## Usage\n\n var eaw = require('eastasianwidth');\n console.log(eaw.eastAsianWidth('₩')) // 'F'\n console.log(eaw.eastAsianWidth('。')) // 'H'\n console.log(eaw.eastAsianWidth('뀀')) // 'W'\n console.log(eaw.eastAsianWidth('a')) // 'Na'\n console.log(eaw.eastAsianWidth('①')) // 'A'\n console.log(eaw.eastAsianWidth('ف')) // 'N'\n\n console.log(eaw.characterLength('₩')) // 2\n console.log(eaw.characterLength('。')) // 1\n console.log(eaw.characterLength('뀀')) // 2\n console.log(eaw.characterLength('a')) // 1\n console.log(eaw.characterLength('①')) // 2\n console.log(eaw.characterLength('ف')) // 1\n\n console.log(eaw.length('あいうえお')) // 10\n console.log(eaw.length('abcdefg')) // 7\n console.log(eaw.length('¢₩。ᅵㄅ뀀¢⟭a⊙①بف')) // 19\n","author":{"name":"Masaki Komagata"},"repository":{"type":"git","url":"git://github.com/komagata/eastasianwidth.git"},"homepage":"https://github.com/komagata/eastasianwidth#readme","bugs":{"url":"https://github.com/komagata/eastasianwidth/issues"},"license":"MIT","readmeFilename":"README.md"}