pangu
Version:
Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).
100 lines (99 loc) • 3.49 kB
JSON
{
"name": "pangu",
"description": "Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).",
"keywords": [
"chinese",
"japanese",
"korean",
"cjk",
"text-spacing",
"typography",
"formatting",
"readability"
],
"version": "9.1.0",
"author": {
"name": "Vinta Chen",
"email": "vinta.chen@gmail.com",
"url": "https://vinta.ws/code/"
},
"license": "MIT",
"homepage": "https://github.com/vinta/pangu.js",
"repository": {
"type": "git",
"url": "git+https://github.com/vinta/pangu.js.git"
},
"bugs": {
"url": "https://github.com/vinta/pangu.js/issues"
},
"type": "module",
"sideEffects": false,
"main": "./dist/node/index.cjs",
"bin": {
"pangu": "./dist/node/cli.js",
"pangu-js": "./dist/node/cli.js"
},
"exports": {
".": {
"import": {
"types": "./dist/node/index.d.ts",
"default": "./dist/node/index.js"
},
"require": {
"types": "./dist/node/index.d.cts",
"default": "./dist/node/index.cjs"
},
"default": "./dist/node/index.js"
},
"./browser": {
"import": {
"types": "./dist/browser/pangu.d.ts",
"default": "./dist/browser/pangu.js"
}
},
"./package.json": "./package.json"
},
"files": [
"dist/",
"src/",
"LICENSE",
"README.md",
"CHANGELOG.md"
],
"scripts": {
"clean": "rm -rf browser-extensions/chrome/dist/ dist/ playwright-report/ test-results/",
"build": "npm run clean && npm run build:lib && npm run build:extension",
"build:lib": "vite build && npm run build:types",
"build:types": "tsc -p src/browser/tsconfig.json --emitDeclarationOnly --declarationDir dist && tsc -p src/node/tsconfig.json --emitDeclarationOnly --declarationDir dist",
"build:extension": "mkdir -p browser-extensions/chrome/vendors/pangu && cp -f dist/browser/pangu.umd.js browser-extensions/chrome/vendors/pangu/ && vite build --config browser-extensions/vite.config.extension.ts && cp -f browser-extensions/chrome/src/content-script.css browser-extensions/chrome/dist/",
"test": "npm run build && vitest run && playwright test --reporter=list",
"test:shared": "npm run build && vitest run tests/shared/",
"test:node": "npm run build && vitest run tests/node/",
"test:browser": "npm run build && playwright test --reporter=list",
"test:extension": "vitest run tests/extension/",
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p src/browser/tsconfig.json && tsc --noEmit -p src/node/tsconfig.json",
"lint": "npm run lint:code && npm run lint:package",
"lint:code": "eslint",
"lint:package": "attw --pack . --entrypoints . && attw --pack . --entrypoints ./browser --profile esm-only && publint",
"bump-version": "node ./scripts/bump-version.js",
"pack-extension": "./scripts/pack-extension-chrome.sh"
},
"dependencies": {},
"devDependencies": {
"@arethetypeswrong/cli": "0.18.5",
"@playwright/test": "1.61.1",
"@types/chrome": "0.2.2",
"@types/node": "26.1.1",
"eslint": "10.7.0",
"prettier": "3.9.6",
"prettier-plugin-organize-imports": "4.3.0",
"publint": "0.3.22",
"typescript": "6.0.3",
"typescript-eslint": "8.65.0",
"vite": "8.1.5",
"vitest": "4.1.10"
},
"engines": {
"node": ">=20.0.0"
}
}