UNPKG

@odict/opencc-js

Version:

The JavaScript version of Open Chinese Convert (OpenCC)

65 lines (64 loc) 1.7 kB
{ "name": "@odict/opencc-js", "version": "1.1.0", "description": "The JavaScript version of Open Chinese Convert (OpenCC)", "type": "module", "module": "./dist/main.js", "types": "./dist/main.d.ts", "files": ["dist", "README.md"], "exports": { "./cn2t": { "types": "./dist/cn2t.d.ts", "import": "./dist/cn2t.js" }, "./t2cn": { "types": "./dist/t2cn.d.ts", "import": "./dist/t2cn.js" }, "./full": { "types": "./dist/full.d.ts", "import": "./dist/full.js" } }, "scripts": { "prepare-data": "bun scripts/download-data.ts && bun scripts/build-locales.ts", "build": "tsup src --outDir dist --format esm --dts", "bench": "bun scripts/benchmark.ts", "prepare": "bun prepare-data && bun run build", "test": "bun prepare-data && vitest run", "test:coverage": "vitest run --coverage", "clean": "rm -rf dist" }, "repository": { "type": "git", "url": "git+https://github.com/TheOpenDictionary/opencc-js.git" }, "author": "The Open Dictionary", "keywords": [ "opencc", "Chinese", "unicode", "Chinese Language", "Simplified Chinese", "Traditional Chinese", "chinese-language", "chinese-characters", "traditional-chinese", "simplified-chinese" ], "license": "MIT", "bugs": { "url": "https://github.com/TheOpenDictionary/opencc-js/issues" }, "homepage": "https://github.com/TheOpenDictionary/opencc-js", "devDependencies": { "@types/bun": "^1.2.14", "@types/node": "^22.15.21", "jsdom": "^26.1.0", "prettier": "^3.5.3", "tsup": "^8.5.0", "typescript": "^5.8.3", "vite": "^6.3.5", "vitest": "^3.1.4" } }