UNPKG

@demouth/mb_strwidth

Version:

Calculates the width of a string, where halfwidth characters count as 1, and fullwidth characters count as 2.

71 lines (70 loc) 1.74 kB
{ "name": "@demouth/mb_strwidth", "version": "2.0.3", "description": "Calculates the width of a string, where halfwidth characters count as 1, and fullwidth characters count as 2.", "main": "dist/index.js", "module": "dist/index.es.js", "browser": "dist/mb_strwidth.js", "types": "dist/index.d.ts", "repository": "git@github.com:demouth/mb_strwidth.git", "author": "demouth <yuya@demouth.net>", "license": "MIT", "bugs": { "url": "https://github.com/demouth/mb_strwidth/issues" }, "homepage": "https://github.com/demouth/mb_strwidth#readme", "scripts": { "build": "rollup -c", "lint": "eslint --fix 'src/**/*.ts'", "lint:types": "tsc --noEmit", "test": "jest" }, "jest": { "moduleFileExtensions": [ "ts", "js" ], "transform": { "^.+\\.ts$": "ts-jest" }, "globals": { "ts-jest": { "tsconfig": "tsconfig.json" } }, "testMatch": [ "**/test/**/*.test.ts" ] }, "keywords": [ "string", "character", "unicode", "fullwidth", "full-width", "full", "ansi", "cjk", "chinese", "japanese", "korean" ], "devDependencies": { "@babel/core": "^7.17.7", "@babel/preset-env": "^7.16.11", "@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-commonjs": "^21.0.2", "@rollup/plugin-node-resolve": "^13.1.3", "@rollup/plugin-typescript": "^8.3.1", "@types/jest": "^27.4.1", "@typescript-eslint/eslint-plugin": "^5.15.0", "@typescript-eslint/parser": "^5.15.0", "eslint": "^8.11.0", "jest": "^27.5.1", "rollup": "^2.70.1", "rollup-plugin-terser": "^7.0.2", "ts-jest": "^27.1.3", "tslib": "^2.3.1", "typescript": "^4.6.2" } }