{ "name": "pinyin", "version": "4.0.0-alpha.2", "description": "汉语拼音转换工具。", "main": "./dist/pinyin.js", "module": "./dist/pinyin.mjs", "browser": { "./dist/pinyin.js": "./lib/pinyin-web.js", "./dist/pinyin.mjs": "./esm/pinyin-web.js" }, "bin": { "pinyin": "./bin/pinyin" }, "homepage": "https://pinyin.js.org/", "author": "闲耘 ", "repository": { "type": "git", "url": "https://github.com/hotoo/pinyin.git" }, "bugs": { "url": "https://github.com/hotoo/pinyin/issues" }, "scripts": { "start": "dumi dev", "prepublishOnly": "npm run build", "build": "rollup -c && rollup -c rollup.esm.config.js", "build:tsc": "tsc --downlevelIteration -p tsconfig-es5.json & tsc --downlevelIteration -p tsconfig.json & npm run build:amd", "build:amd": "tsc --downlevelIteration -p tsconfig-amd.json", "doc:build": "rm -rf ./src/.umi && dumi build", "doc:deploy": "npm run doc:build && cp CNAME docs-dist/dist && gh-pages -d docs-dist/dist", "lint": "eslint ./src/ ./test/", "test": "jest --coverage", "debug": "npx ts-node tools/debug.ts" }, "dependencies": { "commander": "~1.1.1" }, "peerDependencies": { "@node-rs/jieba": "^1.6.0", "nodejieba": "2.5.2", "segmentit": "^2.0.3" }, "peerDependenciesMeta": { "@node-rs/jieba": { "optional": true }, "nodejieba": { "optional": true }, "segmentit": { "optional": true } }, "devDependencies": { "@babel/preset-env": "^7.15.6", "@babel/preset-typescript": "^7.15.0", "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.2.0", "@types/jest": "^27.0.2", "@typescript-eslint/eslint-plugin": "^5.14.0", "@typescript-eslint/parser": "^5.14.0", "aurl": "^1.2.0", "aws-sdk": "^2.1011.0", "beautify-benchmark": "^0.2.4", "benchmark": "~1.0.0", "dumi": "^1.1.30", "eslint": "^8.11.0", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^2.5.0", "eslint-plugin-prettier": "^4.0.0", "gh-pages": "^3.2.3", "jest": "^27.2.3", "mock-aws-s3": "^4.0.2", "nock": "^13.1.4", "npx": "^10.2.2", "prettier": "^2.6.0", "react-json-view": "^1.21.3", "request": "~2.68.0", "rollup": "2.60.0", "rollup-plugin-alias": "^2.2.0", "rollup-plugin-cleanup": "^3.2.1", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.1", "ts-node": "^10.5.0", "typescript": "^4.4.4" }, "registry": "https://registry.npmmirror.com", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "files": [ "package.json", "build/", "bin", "data", "dist", "lib", "esm", "amd", "index.js" ], "keywords": [ "拼音", "汉语", "汉字", "中文", "Pinyin" ], "directories": { "example": "examples", "test": "test" }, "engines": { "install-node": "^18.0.0" }, "license": "MIT" }