tsrpc
Version:
A TypeScript RPC Framework, with runtime type checking and built-in serialization, support both HTTP and WebSocket.
81 lines (80 loc) • 2.27 kB
JSON
{
"name": "tsrpc",
"version": "3.4.19",
"description": "A TypeScript RPC Framework, with runtime type checking and built-in serialization, support both HTTP and WebSocket.",
"main": "index.js",
"exports": {
"require": "./index.js",
"import": "./index.mjs"
},
"typings": "index.d.ts",
"directories": {
"doc": "docs"
},
"scripts": {
"test": "npx mocha",
"genTestProto": "npx tsrpc-cli@latest proto --input test/proto --output test/proto/serviceProto.ts",
"coverage": "nyc mocha test/**/*.test.ts && start coverage\\index.html",
"build": "npm run format && npm run build:js && npm run build:dts && npm run build:doc && node scripts/postBuild && cp package.json LICENSE README.md dist/",
"build:js": "rm -rf dist && npx rollup -c",
"build:dts": "rm -rf lib && npx tsc && npx api-extractor run --local --verbose && rm -rf lib",
"build:doc": "rm -rf docs/api && npx api-documenter markdown --input temp --output docs/api",
"format": "prettier --write \"{src,test}/**/*.{js,jsx,ts,tsx,css,less,scss,json,md}\"",
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,css,less,scss,json,md}\""
},
"repository": {
"type": "git",
"url": "https://github.com/k8w/tsrpc.git"
},
"keywords": [
"k8w",
"ts",
"rpc",
"grpc",
"tsbuffer",
"fullstack",
"websocket",
"protobuf",
"socket.io"
],
"author": "k8w",
"license": "MIT",
"devDependencies": {
"@microsoft/api-documenter": "^7.24.2",
"@microsoft/api-extractor": "^7.43.1",
"@types/chai": "^4.3.16",
"@types/mocha": "^8.2.3",
"@types/node": "^15.14.9",
"@types/uuid": "^8.3.4",
"chai": "^4.4.1",
"mocha": "^9.2.2",
"mongodb": "^4.17.2",
"nyc": "^15.1.0",
"prettier": "^3.5.3",
"rollup": "^2.79.1",
"rollup-plugin-typescript2": "^0.36.0",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
"dependencies": {
"@types/ws": "^7.4.7",
"chalk": "^4.1.2",
"tsbuffer": "^2.2.10",
"tsrpc-base-client": "^2.1.15",
"tsrpc-proto": "^1.4.3",
"uuid": "^8.3.2",
"ws": "^7.5.9"
},
"nyc": {
"extension": [
".ts"
],
"include": [
"src/**/*.ts"
],
"reporter": [
"html"
],
"all": true
}
}