worker-tls
Version:
worker-tls 提供了 动态Worker 功能 和 其它一些 Worker 场景下有用的工具集;让开发者可以像调用对象方法一样动态地调用Worker中的方法,也可以随时地往 Worker 中动态地添加函数 等等。
89 lines • 2.85 kB
JSON
{
"name": "worker-tls",
"version": "1.1.0",
"description": "worker-tls 提供了 动态Worker 功能 和 其它一些 Worker 场景下有用的工具集;让开发者可以像调用对象方法一样动态地调用Worker中的方法,也可以随时地往 Worker 中动态地添加函数 等等。",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": {
".": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./env": {
"require": "./dist/worker-env.cjs",
"types": "./dist/worker-env.d.ts",
"import": "./dist/worker-env.js"
}
},
"types": "./dist/index.d.ts",
"type": "module",
"sideEffects": [
"src/worker-env.ts",
"src/stringify/dynamicWorkerMain.ts",
"src/stringify/listenMessages_Dep.ts",
"dist/worker-env.*"
],
"homepage": "https://github.com/GuoBinyong/worker-tls#readme",
"repository": {
"type": "git",
"url": "https://github.com/GuoBinyong/worker-tls"
},
"bugs": {
"url": "https://github.com/GuoBinyong/worker-tls/issues",
"email": "guobinyong@qq.com"
},
"keywords": [
"worker",
"多线程",
"动态线程",
"dynamic worker",
"动态 worker",
"worker pool",
"线程池",
"动态添加函数",
"Add functions dynamically"
],
"author": {
"name": "郭斌勇",
"email": "guobinyong@qq.com"
},
"license": "MIT",
"files": [
"dist",
"types",
"docs/[^.]*",
"doc/[^.]*"
],
"devDependencies": {
"@microsoft/api-documenter": "latest",
"@microsoft/api-extractor": "latest",
"build-tls": "latest",
"dts-bundle-generator": "latest",
"package-tls": "latest",
"rollup-plugin-preserve-shebang": "latest",
"typescript": "latest",
"vite": "latest",
"vite-node": "latest"
},
"dependencies": {
"type-tls": "^3.1.1"
},
"scripts": {
"serve": "vite",
"dev": "vite-node -w src/index.ts",
"dev:bin": "vite-node src/bin.ts",
"build": "vite build",
"bunch": "vite build --mode bunch",
"debug": "debug=true vite build",
"debug:bunch": "debug=true vite build --mode bunch",
"exe": "bun build --compile --minify ./src/bin.ts --outfile ./exe/worker-tls",
"exe:win": "bun build --compile --minify --target=bun-windows-x64 ./src/bin.ts --outfile ./exe/library-vite-template_win",
"exe:linux": "bun build --compile --minify --target=bun-linux-x64 ./src/bin.ts --outfile ./exe/library-vite-template_linux",
"exe:mac": "bun build --compile --minify --target=bun-darwin-arm64 ./src/bin.ts --outfile ./exe/library-vite-template_mac",
"preview": "vite preview",
"api": "api-extractor run -c api-extractor.jsonc -l -v",
"doc": "api-documenter markdown -i ./temp -o doc/api",
"apidoc": "npm run api ; npm run doc"
}
}