{"_id":"ts-wcwidth","_rev":"3804733","name":"ts-wcwidth","description":"Port of C's wcwidth() and wcswidth()","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"time":{"modified":"2025-06-05T10:57:44.000Z","created":"2018-09-05T18:03:30.002Z","2.0.3":"2020-12-07T04:31:06.907Z","2.0.2":"2020-09-08T06:13:59.639Z","2.0.1":"2020-07-01T16:32:14.734Z","2.0.0":"2020-04-23T21:21:02.075Z","1.1.4":"2020-01-31T22:38:33.342Z","1.1.3":"2019-08-29T04:03:20.402Z","1.1.2":"2019-05-28T04:27:54.921Z","1.1.1":"2019-02-25T02:15:28.002Z","1.1.0":"2019-02-23T09:08:13.475Z","1.0.4":"2018-12-31T02:46:50.520Z","1.0.3":"2018-12-16T00:00:22.164Z","1.0.2":"2018-10-11T06:36:56.663Z","1.0.1":"2018-09-05T18:26:29.054Z","1.0.0":"2018-09-05T18:03:30.002Z"},"users":{},"author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"versions":{"2.0.3":{"name":"ts-wcwidth","version":"2.0.3","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"homepage":"https://ts-wcwidth.vercel.app","keywords":["wcwidth","columns","typescript"],"main":"dist/index.js","module":"dist/module/index.js","typings":"dist/index.d.ts","sideEffects":false,"scripts":{"build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","lint":"eslint --ext .js,.ts, . -f codeframe","lint:fix":"eslint --fix --ext .js,.ts, . -f codeframe","prepare":"npm run build","build":"del-cli dist && tsc -p tsconfig.build.json && tsc -p tsconfig.module.json","test":"jest","test:watch":"jest --watch","test:ci":"jest --coverage --no-cache"},"dependencies":{},"devDependencies":{"@babel/plugin-transform-modules-commonjs":"7.12.1","@babel/preset-typescript":"7.12.7","@ctrl/eslint-config":"1.2.7","@jest/globals":"26.6.2","@types/node":"14.14.10","del-cli":"3.0.1","jest":"26.6.3","rollup":"2.34.2","rollup-plugin-livereload":"2.0.0","rollup-plugin-serve":"1.1.0","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.2"},"jest":{"testEnvironment":"node"},"babel":{"presets":["@babel/preset-typescript"],"plugins":["@babel/plugin-transform-modules-commonjs"]},"release":{"branch":"master"},"engines":{"node":">=10.0.0"},"gitHead":"0deddfbe5a04bb1093c335f1c40bdd555ba7ac64","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"_id":"ts-wcwidth@2.0.3","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"b5c75890156d2e6c289ec0267426b7ac84317952","size":7446,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-2.0.3.tgz"},"_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"directories":{},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_2.0.3_1607315466731_0.38443459491318643"},"_hasShrinkwrap":false,"publish_time":1607315466907,"_cnpm_publish_time":1607315466907,"_cnpmcore_publish_time":"2021-12-16T19:19:04.949Z"},"2.0.2":{"name":"ts-wcwidth","version":"2.0.2","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"homepage":"https://ts-wcwidth.vercel.app","keywords":["wcwidth","columns","typescript"],"main":"dist/index.js","module":"dist/module/index.js","typings":"dist/index.d.ts","sideEffects":false,"scripts":{"build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","lint":"eslint --ext .js,.ts, . -f codeframe","lint:fix":"eslint --fix --ext .js,.ts, . -f codeframe","prepare":"npm run build","build":"del-cli dist && tsc -p tsconfig.build.json && tsc -p tsconfig.module.json","test":"jest","test:watch":"jest --watch","test:ci":"jest --coverage --no-cache"},"dependencies":{},"devDependencies":{"@babel/plugin-transform-modules-commonjs":"7.10.4","@babel/preset-typescript":"7.10.4","@ctrl/eslint-config":"1.1.1","@jest/globals":"26.4.2","@types/node":"14.6.4","del-cli":"3.0.1","jest":"26.4.2","rollup":"2.26.11","rollup-plugin-livereload":"2.0.0","rollup-plugin-serve":"1.0.4","rollup-plugin-terser":"7.0.2","rollup-plugin-typescript2":"0.27.2","typescript":"4.0.2"},"jest":{"testEnvironment":"node"},"babel":{"presets":["@babel/preset-typescript"],"plugins":["@babel/plugin-transform-modules-commonjs"]},"release":{"branch":"master"},"engines":{"node":">=10.0.0"},"gitHead":"df0cc8cf7edf91351ce70c241992f329cc716ef9","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"_id":"ts-wcwidth@2.0.2","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"shasum":"fb2f85c73e331698918349b910e670a771f23655","size":8627,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-2.0.2.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_2.0.2_1599545639496_0.9427365418375424"},"_hasShrinkwrap":false,"publish_time":1599545639639,"_cnpm_publish_time":1599545639639,"_cnpmcore_publish_time":"2021-12-16T19:19:05.620Z"},"2.0.1":{"name":"ts-wcwidth","version":"2.0.1","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"homepage":"https://ts-wcwidth.vercel.app","keywords":["wcwidth","columns","typescript"],"main":"./dist/index.js","module":"./dist/module/index.js","typings":"./dist/index.d.ts","sideEffects":false,"scripts":{"build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","lint":"eslint --ext .js,.ts, . -f codeframe","lint:fix":"eslint --fix --ext .js,.ts, . -f codeframe","prepare":"npm run build","build":"del-cli dist && tsc -p tsconfig.build.json && tsc -p tsconfig.module.json","test":"jest","test:watch":"jest --watch","test:ci":"jest --coverage --no-cache","semantic-release":"semantic-release"},"dependencies":{},"devDependencies":{"@ctrl/eslint-config":"1.0.0","@jest/globals":"26.1.0","@types/node":"14.0.14","del-cli":"3.0.1","jest":"26.1.0","rollup":"2.18.1","rollup-plugin-livereload":"1.3.0","rollup-plugin-serve":"1.0.1","rollup-plugin-terser":"6.1.0","rollup-plugin-typescript2":"0.27.1","semantic-release":"17.1.1","ts-jest":"26.1.1","typescript":"3.9.5"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"release":{"branch":"master"},"engines":{"node":">=10.0.0"},"gitHead":"ef47bee61b04d3dcbf5925b0c31ac73ab3e298e1","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"_id":"ts-wcwidth@2.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"shasum":"34b92c4ec3de3c38f11283bfe5ee54f4f2a25f25","size":8557,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-2.0.1.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_2.0.1_1593621134622_0.0960751642269575"},"_hasShrinkwrap":false,"publish_time":1593621134734,"_cnpm_publish_time":1593621134734,"_cnpmcore_publish_time":"2021-12-16T19:19:05.812Z"},"2.0.0":{"name":"ts-wcwidth","version":"2.0.0","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["wcwidth","columns","typescript"],"main":"./dist/index.js","module":"./dist/module/index.js","typings":"./dist/index.d.ts","sideEffects":false,"scripts":{"build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","lint":"eslint --ext .js,.ts, .","lint:fix":"eslint --fix --ext .js,.ts, .","prepare":"npm run build","build":"del-cli dist && tsc -p tsconfig.build.json && tsc -p tsconfig.module.json","test":"jest","test:watch":"jest --watch","test:ci":"jest --coverage --no-cache","semantic-release":"semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"25.2.1","@types/node":"13.13.2","@typescript-eslint/eslint-plugin":"2.29.0","@typescript-eslint/parser":"2.29.0","del-cli":"3.0.0","eslint":"6.8.0","eslint-config-xo-space":"0.24.0","eslint-config-xo-typescript":"0.27.0","eslint-plugin-import":"2.20.2","jest":"25.4.0","rollup":"2.7.2","rollup-plugin-livereload":"1.2.0","rollup-plugin-serve":"1.0.1","rollup-plugin-terser":"5.3.0","rollup-plugin-typescript2":"0.27.0","semantic-release":"17.0.7","ts-jest":"25.4.0","typescript":"3.8.3"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"release":{"branch":"master"},"engines":{"node":">=10.0.0"},"gitHead":"fad51c2f9e18d149e86656fff15dc8ad4354a6fe","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@2.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"shasum":"52ea9d82245634b9b449e944572833f1e52ef1e8","size":8584,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-2.0.0.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_2.0.0_1587676861901_0.9635117906253903"},"_hasShrinkwrap":false,"publish_time":1587676862075,"_cnpm_publish_time":1587676862075,"_cnpmcore_publish_time":"2021-12-16T19:19:06.013Z"},"1.1.4":{"name":"ts-wcwidth","version":"1.1.4","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["wcwidth","columns","typescript"],"main":"./dist/index.js","module":"./dist/module/index.js","typings":"./dist/index.d.ts","sideEffects":false,"scripts":{"build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","lint":"eslint --ext .js,.ts, .","lint:fix":"eslint --fix --ext .js,.ts, .","prepare":"npm run build","build":"del dist && tsc -p tsconfig.build.json && tsc -p tsconfig.module.json","test":"jest","test:watch":"jest --watch","test:ci":"jest --coverage --no-cache","semantic-release":"semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"25.1.1","@types/node":"13.7.0","@typescript-eslint/eslint-plugin":"2.18.0","@typescript-eslint/parser":"2.18.0","del-cli":"3.0.0","eslint":"6.8.0","eslint-config-xo-space":"0.22.0","eslint-config-xo-typescript":"0.24.1","eslint-plugin-import":"2.20.0","jest":"25.1.0","rollup":"1.31.0","rollup-plugin-livereload":"1.0.4","rollup-plugin-serve":"1.0.1","rollup-plugin-terser":"5.2.0","rollup-plugin-typescript2":"0.25.3","semantic-release":"17.0.2","ts-jest":"25.1.0","typescript":"3.7.5"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"release":{"branch":"master"},"engines":{"node":">=8.0.0"},"gitHead":"f7ca5c2ce3e79eead8e3c1892babcb0934f165f5","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.1.4","_nodeVersion":"10.18.1","_npmVersion":"6.13.7","dist":{"shasum":"a9217504ab2e2a423cdc9e97d836163b02c09835","size":8649,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.1.4.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.1.4_1580510313219_0.48940479178194507"},"_hasShrinkwrap":false,"publish_time":1580510313342,"_cnpm_publish_time":1580510313342,"_cnpmcore_publish_time":"2021-12-16T19:19:06.241Z"},"1.1.3":{"name":"ts-wcwidth","version":"1.1.3","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["wcwidth","columns","typescript"],"main":"./dist/index.js","module":"./dist/module/index.js","typings":"./dist/index.d.ts","sideEffects":false,"scripts":{"build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","lint":"eslint src/**/*.ts test/**/*.ts","lint:fix":"eslint --fix src/**/*.ts test/**/*.ts","prepare":"npm run build","build":"del dist && tsc -p tsconfig.build.json && tsc -p tsconfig.module.json","test":"jest","test:watch":"jest --watch","test:ci":"jest --coverage --no-cache","semantic-release":"semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"24.0.18","@types/node":"12.7.2","@typescript-eslint/eslint-plugin":"2.0.0","@typescript-eslint/parser":"2.0.0","del-cli":"2.0.0","eslint":"6.2.2","eslint-config-xo-space":"0.21.0","eslint-config-xo-typescript":"0.17.0","eslint-plugin-import":"2.18.2","jest":"24.9.0","rollup":"1.20.3","rollup-plugin-livereload":"1.0.1","rollup-plugin-serve":"1.0.1","rollup-plugin-terser":"5.1.1","rollup-plugin-typescript2":"0.24.0","semantic-release":"15.13.24","ts-jest":"24.0.2","typescript":"3.6.2"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"release":{"branch":"master"},"engines":{"node":">=8.0.0"},"gitHead":"ea3ee8a67ce9146549a89f5f4d0aa2b4c0f0a9a8","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.1.3","_nodeVersion":"10.16.3","_npmVersion":"6.11.2","dist":{"shasum":"3e613b6d0a5b949da6e2b3bea239ed5885358e13","size":8658,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.1.3.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.1.3_1567051400277_0.06037898303069489"},"_hasShrinkwrap":false,"publish_time":1567051400402,"_cnpm_publish_time":1567051400402,"_cnpmcore_publish_time":"2021-12-16T19:19:06.489Z"},"1.1.2":{"name":"ts-wcwidth","version":"1.1.2","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["wcwidth","columns","typescript"],"main":"./dist/index.js","module":"./dist/module/index.js","typings":"./dist/index.d.ts","sideEffects":false,"scripts":{"build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","lint":"eslint src/**/*.ts test/**/*.ts","lint:fix":"eslint --fix src/**/*.ts test/**/*.ts","prepare":"npm run build","build":"del dist && tsc -p tsconfig.json && tsc -p tsconfig.module.json","test":"jest","test:watch":"jest --watch","test:ci":"jest --coverage --no-cache","semantic-release":"semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"24.0.13","@types/node":"12.0.2","@typescript-eslint/eslint-plugin":"1.9.0","@typescript-eslint/parser":"1.9.0","del-cli":"1.1.0","eslint":"5.16.0","eslint-config-prettier":"4.3.0","eslint-config-xo-space":"0.21.0","eslint-config-xo-typescript":"0.12.0","eslint-plugin-import":"2.17.3","jest":"24.8.0","prettier":"1.17.1","rollup":"1.12.4","rollup-plugin-livereload":"1.0.0","rollup-plugin-serve":"1.0.1","rollup-plugin-terser":"5.0.0","rollup-plugin-typescript2":"0.21.1","semantic-release":"15.13.12","ts-jest":"24.0.2","typescript":"3.4.5"},"release":{"branch":"master"},"engines":{"node":">=8.0.0"},"gitHead":"29d17728c2639796347a437816c5258cb7bca8e8","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.1.2","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"2ca7964cd7cfce0331a0be3ee665ec8f6bde621f","size":8506,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.1.2.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.1.2_1559017674794_0.6879810089712193"},"_hasShrinkwrap":false,"publish_time":1559017674921,"_cnpm_publish_time":1559017674921,"_cnpmcore_publish_time":"2021-12-16T19:19:06.700Z"},"1.1.1":{"name":"ts-wcwidth","version":"1.1.1","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["typescript","wcwidth","columns"],"main":"./index.js","module":"./module/index.js","typings":"./index.d.ts","sideEffects":false,"scripts":{"demo":"npm-run-all --parallel start:demo watch:demo","build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","start:demo":"serve demo/public","lint":"eslint src/**/*.ts test/**/*.ts","lint:fix":"eslint --fix src/**/*.ts test/**/*.ts","prebuild":"rimraf dist","build":"tsc -p tsconfig.json && tsc -p tsconfig.module.json","postbuild":"cp package.json dist && cp LICENSE dist && cp README.md dist","test":"jest","test:watch":"jest --watch","test:ci":"npm run test -- --coverage --no-cache","semantic-release":"cd dist && semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"24.0.6","@types/node":"11.9.5","@typescript-eslint/eslint-plugin":"1.4.1","@typescript-eslint/parser":"1.4.1","eslint":"5.14.1","eslint-config-prettier":"4.0.0","eslint-config-xo-space":"0.21.0","eslint-config-xo-typescript":"0.8.0","eslint-plugin-import":"2.16.0","jest":"24.1.0","npm-run-all":"4.1.5","prettier":"1.16.4","rimraf":"2.6.3","rollup":"1.2.3","rollup-plugin-terser":"4.0.4","rollup-plugin-typescript2":"0.19.2","semantic-release":"15.13.3","ts-jest":"24.0.0","ts-node":"8.0.2","typescript":"3.3.3333"},"release":{"branch":"master"},"engines":{"node":">=8.0.0"},"bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.1.1","_npmVersion":"6.5.0","_nodeVersion":"10.15.1","_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"dist":{"shasum":"85a7abe8bfccb1abff26dc1d5e0602a045107264","size":9089,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.1.1.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.1.1_1551060927882_0.3073712210368169"},"_hasShrinkwrap":false,"publish_time":1551060928002,"_cnpm_publish_time":1551060928002,"_cnpmcore_publish_time":"2021-12-16T19:19:06.942Z"},"1.1.0":{"name":"ts-wcwidth","version":"1.1.0","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["typescript","wcwidth","columns"],"main":"./index.js","typings":"./index.d.ts","sideEffects":false,"scripts":{"demo":"npm-run-all --parallel start:demo watch:demo","build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","start:demo":"serve demo/public","lint":"eslint src/**/*.ts test/**/*.ts","lint:fix":"eslint --fix src/**/*.ts test/**/*.ts","prebuild":"rimraf dist","build":"tsc -p tsconfig.json","postbuild":"cp package.json dist && cp LICENSE dist && cp README.md dist","test":"jest","test:watch":"jest --watch","test:ci":"npm run test -- --coverage --no-cache","semantic-release":"cd dist && semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"24.0.6","@types/node":"11.9.5","@typescript-eslint/eslint-plugin":"1.4.0","@typescript-eslint/parser":"1.4.0","eslint":"5.14.1","eslint-config-prettier":"4.0.0","eslint-config-xo-space":"0.21.0","eslint-config-xo-typescript":"0.8.0","eslint-plugin-import":"2.16.0","jest":"24.1.0","npm-run-all":"4.1.5","prettier":"1.16.4","rimraf":"2.6.3","rollup":"1.2.2","rollup-plugin-typescript2":"0.19.2","semantic-release":"15.13.3","ts-jest":"24.0.0","ts-node":"8.0.2","typescript":"3.3.3333"},"release":{"branch":"master"},"engines":{"node":">=8.0.0"},"bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.1","_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"dist":{"shasum":"6eef4fc771fd5d4fdca6ad83fd95298ac971bfab","size":7251,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.1.0.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.1.0_1550912893315_0.7768266014416725"},"_hasShrinkwrap":false,"publish_time":1550912893475,"_cnpm_publish_time":1550912893475,"_cnpmcore_publish_time":"2021-12-16T19:19:07.157Z"},"1.0.4":{"name":"ts-wcwidth","version":"1.0.4","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["typescript","wcwidth","columns"],"source":"src/index.ts","main":"./ts-wcwidth.js","module":"./ts-wcwidth.m.js","typings":"./src/index.d.ts","sideEffects":false,"scripts":{"demo":"npm-run-all --parallel start:demo watch:demo","build:demo":"rollup -c rollup.demo.js","watch:demo":"rollup -c rollup.demo.js -w","start:demo":"serve demo/public","lint":"tslint -p . -t stylish","lint:fix":"tslint -p . -t stylish --fix","prebuild":"rimraf dist","postbuild":"cp package.json dist && cp LICENSE dist && cp README.md dist && rimraf dist/test","build":"microbundle build --target node --format cjs,es -o dist","test":"jest","test:watch":"jest --watch","test:ci":"npm run test -- --coverage --no-cache","semantic-release":"cd dist && semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"23.3.10","@types/node":"10.12.18","jest":"23.6.0","microbundle":"0.9.0","npm-run-all":"4.1.5","prettier":"1.15.3","rimraf":"2.6.2","rollup":"1.0.0","rollup-plugin-typescript2":"0.18.1","semantic-release":"15.13.2","travis-deploy-once":"5.0.11","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.12.0","tslint-config-prettier":"1.17.0","tslint-xo":"0.11.0","typescript":"3.2.2"},"release":{"branch":"master"},"engines":{"node":">=8.0.0"},"bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.0.4","_npmVersion":"6.5.0","_nodeVersion":"10.15.0","_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"dist":{"shasum":"70a6f9c8120f5458790cd847882e088f7475aef6","size":9525,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.0.4.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.0.4_1546224410359_0.620369151696414"},"_hasShrinkwrap":false,"publish_time":1546224410520,"_cnpm_publish_time":1546224410520,"_cnpmcore_publish_time":"2021-12-16T19:19:07.429Z"},"1.0.3":{"name":"ts-wcwidth","version":"1.0.3","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["typescript","wcwidth","columns"],"source":"src/index.ts","main":"./ts-wcwidth.js","module":"./ts-wcwidth.m.js","typings":"./src/index.d.ts","sideEffects":false,"scripts":{"lint":"tslint -p . -t stylish","lint:fix":"tslint -p . -t stylish --fix","prebuild":"rimraf dist","postbuild":"cp package.json dist && cp LICENSE dist && cp README.md dist && rimraf dist/test","build":"microbundle build --target node --format cjs,es -o dist","build:docs":"typedoc --out docs --target es6 --theme minimal --mode file src && touch docs/.nojekyll","test":"jest","test:watch":"jest --watch","test:ci":"npm run test -- --coverage --no-cache","semantic-release":"cd dist && semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"23.3.10","@types/node":"10.12.15","jest":"23.6.0","microbundle":"0.8.3","prettier":"1.15.3","rimraf":"2.6.2","semantic-release":"15.13.0","travis-deploy-once":"5.0.11","ts-jest":"23.10.5","ts-node":"7.0.1","tslint":"5.11.0","tslint-config-prettier":"1.17.0","tslint-xo":"0.10.0","typedoc":"0.13.0","typescript":"3.2.2"},"release":{"branch":"master"},"engines":{"node":">=8.0.0"},"bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.0.3","_npmVersion":"6.5.0","_nodeVersion":"10.14.2","_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"dist":{"shasum":"f7b9e5983e19863fed8ce4423a2b2b913cad81e9","size":8441,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.0.3.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.0.3_1544918421152_0.2702154714356193"},"_hasShrinkwrap":false,"publish_time":1544918422164,"_cnpm_publish_time":1544918422164,"_cnpmcore_publish_time":"2021-12-16T19:19:07.640Z"},"1.0.2":{"name":"ts-wcwidth","version":"1.0.2","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["typescript","wcwidth","columns"],"source":"src/index.ts","main":"./ts-wcwidth.js","module":"./ts-wcwidth.m.js","typings":"./src/index.d.ts","sideEffects":false,"scripts":{"lint":"tslint -p . -t stylish","lint:fix":"tslint -p . -t stylish --fix","prebuild":"rimraf dist","build":"microbundle build --compress false --format cjs,es --target node -o dist","build:docs":"typedoc --out docs --target es6 --theme minimal --mode file src && touch docs/.nojekyll","test":"jest","test:watch":"jest --watch","test:prod":"npm run test -- --coverage --no-cache","commit":"git-cz","travis-deploy-once":"travis-deploy-once --pro","presemantic-release":"cp package.json dist && cp LICENSE dist && cp README.md dist && rimraf dist/test","semantic-release":"cd dist && semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"23.3.5","@types/node":"10.11.7","jest":"23.6.0","microbundle":"0.6.0","prettier":"1.14.3","rimraf":"2.6.2","semantic-release":"15.9.17","travis-deploy-once":"5.0.9","ts-jest":"23.10.4","ts-node":"7.0.1","tslint":"5.11.0","tslint-config-prettier":"1.15.0","tslint-xo":"0.9.0","typedoc":"0.13.0","typescript":"3.1.2"},"release":{"branch":"master"},"jest":{"preset":"ts-jest","collectCoverage":true},"engines":{"node":">=8.0.0"},"bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"dist":{"shasum":"9d72b06cc7185fb2407eeaacdfb8ee87d9085b1a","size":13427,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.0.2.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.0.2_1539239816471_0.4138066751513525"},"_hasShrinkwrap":false,"publish_time":1539239816663,"_cnpm_publish_time":1539239816663,"_cnpmcore_publish_time":"2021-12-16T19:19:08.246Z"},"1.0.1":{"name":"ts-wcwidth","version":"1.0.1","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["typescript","wcwidth","columns"],"source":"src/index.ts","main":"./ts-wcwidth.js","module":"./ts-wcwidth.m.js","typings":"./index.d.ts","sideEffects":false,"scripts":{"lint":"tslint -p tsconfig.json -t stylish 'src/**/*.ts' 'test/**/*.ts'","lint:fix":"tslint -p tsconfig.json -t stylish --fix 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"microbundle build --compress false --format cjs,es --target node -o dist","build:docs":"typedoc --out docs --target es6 --theme minimal --mode file src && touch docs/.nojekyll","test":"jest","test:watch":"jest --watch","test:prod":"npm run test -- --coverage --no-cache","commit":"git-cz","travis-deploy-once":"travis-deploy-once --pro","presemantic-release":"cp package.json dist && cp LICENSE dist && cp README.md dist","semantic-release":"cd dist && semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"23.3.1","@types/node":"10.9.4","commitizen":"2.10.1","cz-conventional-changelog":"2.1.0","jest":"23.5.0","microbundle":"0.6.0","prettier":"1.14.2","rimraf":"2.6.2","semantic-release":"15.9.12","travis-deploy-once":"5.0.7","ts-jest":"23.1.4","ts-node":"7.0.1","tslint":"5.11.0","tslint-config-prettier":"1.15.0","tslint-xo":"^0.9.0","typedoc":"0.12.0","typescript":"3.0.3"},"release":{"branch":"master"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"jest":{"testURL":"http://localhost","transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"collectCoverage":true},"engines":{"node":">=8.0.0"},"bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"dist":{"shasum":"3de29ddf7d2ea8839352ff7b890da739fcab795b","size":13597,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.0.1.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.0.1_1536171988890_0.839816590359914"},"_hasShrinkwrap":false,"publish_time":1536171989054,"_cnpm_publish_time":1536171989054,"_cnpmcore_publish_time":"2021-12-16T19:19:08.477Z"},"1.0.0":{"name":"ts-wcwidth","version":"1.0.0","description":"Port of C's wcwidth() and wcswidth()","author":{"name":"Scott Cooper","email":"scttcper@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/scttcper/ts-wcwidth.git"},"keywords":["typescript","wcwidth","columns"],"source":"src/index.ts","main":"./index.js","module":"./index.m.js","typings":"./index.d.ts","sideEffects":false,"scripts":{"lint":"tslint -p tsconfig.json -t stylish 'src/**/*.ts' 'test/**/*.ts'","lint:fix":"tslint -p tsconfig.json -t stylish --fix 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"microbundle build --compress false --format cjs,es --target node -o dist","build:docs":"typedoc --out docs --target es6 --theme minimal --mode file src && touch docs/.nojekyll","test":"jest","test:watch":"jest --watch","test:prod":"npm run test -- --coverage --no-cache","commit":"git-cz","travis-deploy-once":"travis-deploy-once --pro","presemantic-release":"cp package.json dist && cp LICENSE dist && cp README.md dist","semantic-release":"cd dist && semantic-release"},"dependencies":{},"devDependencies":{"@types/jest":"23.3.1","@types/node":"10.9.4","commitizen":"2.10.1","cz-conventional-changelog":"2.1.0","jest":"23.5.0","microbundle":"0.6.0","prettier":"1.14.2","rimraf":"2.6.2","semantic-release":"15.9.12","travis-deploy-once":"5.0.7","ts-jest":"23.1.4","ts-node":"7.0.1","tslint":"5.11.0","tslint-config-prettier":"1.15.0","tslint-xo":"^0.9.0","typedoc":"0.12.0","typescript":"3.0.3"},"release":{"branch":"master"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"jest":{"testURL":"http://localhost","transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"],"collectCoverage":true},"engines":{"node":">=8.0.0"},"bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"homepage":"https://github.com/scttcper/ts-wcwidth#readme","_id":"ts-wcwidth@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"scttcper","email":"scttcper@gmail.com"},"dist":{"shasum":"0439b8c170d9aeb0c75691532e89192e3526dd85","size":13608,"noattachment":false,"key":"/ts-wcwidth/-/ts-wcwidth-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ts-wcwidth/download/ts-wcwidth-1.0.0.tgz"},"maintainers":[{"name":"npm:scttcper","email":""},{"name":"scttcper","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-wcwidth_1.0.0_1536170609785_0.17120616544808342"},"_hasShrinkwrap":false,"publish_time":1536170610002,"_cnpm_publish_time":1536170610002,"_cnpmcore_publish_time":"2021-12-16T19:19:08.680Z"}},"readme":"# ts-wcwidth [![npm](https://badgen.net/npm/v/ts-wcwidth)](https://www.npmjs.com/package/ts-wcwidth) [![CircleCI](https://circleci.com/gh/scttcper/ts-wcwidth.svg?style=svg)](https://circleci.com/gh/scttcper/ts-wcwidth) [![coverage](https://badgen.net/codecov/c/github/scttcper/ts-wcwidth)](https://codecov.io/gh/scttcper/ts-wcwidth) [![bundlesize](https://badgen.net/bundlephobia/min/ts-wcwidth)](https://bundlephobia.com/result?p=ts-wcwidth)\n\n> Determine number of columns needed for a fixed-size wide-character string\n\nThis project is a zero dependency typescript version of [wcwidth by timoxley](https://github.com/timoxley/wcwidth) which is a port from [wcwidth.js by Jun Woong](https://github.com/mycoboco/wcwidth.js) which was from the [original version in C](https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c).\n\n__Demo__: https://ts-wcwidth.vercel.app  \n\n## Install\n\n```sh\nnpm install ts-wcwidth\n```\n\n## Usage\n\n```ts\nimport wcwidth from 'ts-wcwidth';\n'한'.length; // 1\nwcwidth('한'); // 2\n\n'한글'.length; // 2\nwcwidth('한글'); // 4\n```\n\n`wcwidth()` and its string version, `wcswidth()` are defined by IEEE Std\n1002.1-2001, a.k.a. POSIX.1-2001, and return the number of columns used\nto represent the given wide character and string.\n\nMarkus's implementation assumes the wide character given to those\nfunctions to be encoded in ISO 10646, which is almost true for\nJavaScript's characters.\n\n## More\n\nThe following is from the original version by Markus Kuhn [wcwidth.c](https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c)\n\nThis is an implementation of wcwidth() and wcswidth() (defined in\nIEEE Std 1002.1-2001) for Unicode.\n\nhttp://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html  \nhttp://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html  \n\nIn fixed-width output devices, Latin characters all occupy a single\n\"cell\" position of equal width, whereas ideographic CJK characters\noccupy two such cells. Interoperability between terminal-line\napplications and (teletype-style) character terminals using the\nUTF-8 encoding requires agreement on which character should advance\nthe cursor by how many cell positions. No established formal\nstandards exist at present on which Unicode character shall occupy\nhow many cell positions on character terminals. These routines are\na first attempt of defining such behavior based on simple rules\napplied to data provided by the Unicode Consortium.\n\nFor some graphical characters, the Unicode standard explicitly\ndefines a character-cell width via the definition of the East Asian\nFullWidth (F), Wide (W), Half-width (H), and Narrow (Na) classes.\nIn all these cases, there is no ambiguity about which width a\nterminal shall use. For characters in the East Asian Ambiguous (A)\nclass, the width choice depends purely on a preference of backward\ncompatibility with either historic CJK or Western practice.\nChoosing single-width for these characters is easy to justify as\nthe appropriate long-term solution, as the CJK practice of\ndisplaying these characters as double-width comes from historic\nimplementation simplicity (8-bit encoded characters were displayed\nsingle-width and 16-bit ones double-width, even for Greek,\nCyrillic, etc.) and not any typographic considerations.\n\nMuch less clear is the choice of width for the Not East Asian\n(Neutral) class. Existing practice does not dictate a width for any\nof these characters. It would nevertheless make sense\ntypographically to allocate two character cells to characters such\nas for instance EM SPACE or VOLUME INTEGRAL, which cannot be\nrepresented adequately with a single-width glyph. The following\nroutines at present merely assign a single-cell width to all\nneutral characters, in the interest of simplicity. This is not\nentirely satisfactory and should be reconsidered before\nestablishing a formal standard in this area. At the moment, the\ndecision which Not East Asian (Neutral) characters should be\nrepresented by double-width glyphs cannot yet be answered by\napplying a simple rule from the Unicode database content. Setting\nup a proper standard for the behavior of UTF-8 character terminals\nwill require a careful analysis not only of each Unicode character,\nbut also of each presentation form, something the author of these\nroutines has avoided to do so far.\n\n## License\n\n**MIT**  \nPrevious projects were MIT licensed (included in LICENSE) and the [original c code](https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c) was very permissive.\n","_attachments":{},"homepage":"https://ts-wcwidth.vercel.app","bugs":{"url":"https://github.com/scttcper/ts-wcwidth/issues"},"license":"MIT"}