UNPKG

@sebastianwessel/quickjs

Version:

A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox

142 lines (141 loc) 3.75 kB
{ "name": "@sebastianwessel/quickjs", "version": "3.1.0", "description": "A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox", "engines": { "node": ">=18.0.0" }, "publishConfig": { "access": "public" }, "keywords": [ "typescript", "quickjs", "runtime", "wasm", "webassembly", "bun", "hono", "example", "worker", "pool", "package", "library" ], "files": [ "dist" ], "tshy": { "exclude": [ "src/**/*.test.ts", "vendor", "example", "docs", "vendor.ts", "node_modules" ], "dialects": [ "esm", "commonjs" ], "exports": { "./package.json": "./package.json", ".": "./src/index.ts" } }, "type": "module", "scripts": { "start": "bun run --watch example/server/server.ts", "build": "bun run build:vendor && tshy && bun run build:copy", "build:vendor": "bun vendor.ts", "build:copy": "cp -R ./src/modules/build/ ./dist/esm/modules/build && cp -R ./src/modules/build/ ./dist/commonjs/modules/build", "test": "bun run build:vendor && tsc --noEmit && bun test", "test:dev": "bun test --watch", "lint": "bunx @biomejs/biome check", "lint:fix": "bunx @biomejs/biome check --write", "postpublish": "npx jsr publish", "example:ai": "bun example/ai/index.ts", "example:async": "bun example/async/index.ts", "example:basic": "bun example/basic/index.ts", "example:function": "bun example/function-call/index.ts", "example:server": "bun example/server/server.ts", "example:tests": "bun example/run-tests/index.ts", "example:timer": "bun example/timer/index.ts", "example:typescript": "bun example/typescript/index.ts", "example:module": "bun example/custom-module/index.ts", "example:user": "bun example/user-code/index.ts", "knip": "knip", "release": "bun run build && bun run lint:fix && np", "docs:dev": "vitepress dev website", "docs:build": "git-cliff > CHANGELOG.md && typedoc --options typedoc.json && vitepress build website", "docs:preview": "vitepress preview website" }, "author": { "name": "Sebastian Wessel", "url": "https://sebastianwessel.de" }, "homepage": "https://github.com/sebastianwessel/quickjs#readme", "bugs": { "url": "https://github.com/sebastianwessel/quickjs/issues" }, "repository": { "type": "git", "url": "git+https://github.com/sebastianwessel/quickjs.git" }, "license": "MIT", "devDependencies": { "@biomejs/biome": "^2.4.16", "@hono/swagger-ui": "^0.6.1", "@hono/zod-openapi": "^1.4.0", "@jitl/quickjs-ng-wasmfile-release-asyncify": "^0.32.0", "@jitl/quickjs-ng-wasmfile-release-sync": "^0.32.0", "@types/autocannon": "^7.12.7", "@types/bun": "^1.3.14", "@types/node": "^25.9.1", "autocannon": "^8.0.0", "chai": "^6.2.2", "git-cliff": "^2.13.1", "hono": "^4.12.23", "jsr": "^0.14.3", "knip": "^6.16.0", "np": "^11.2.1", "openai": "^6.42.0", "poolifier-web-worker": "^0.6.3", "tshy": "^4.1.2", "typedoc": "^0.28.19", "typedoc-plugin-markdown": "^4.12.0", "typescript": "^6.0.3", "vitepress": "^1.6.4", "vitepress-sidebar": "^1.36.1", "vue": "^3.5.35" }, "dependencies": { "memfs": "^4.57.6", "quickjs-emscripten-core": "^0.32.0", "rate-limiter-flexible": "^11.1.1" }, "peerDependencies": { "typescript": ">= 5.5.4" }, "peerDependenciesMeta": { "typescript": { "optional": true } }, "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } } }, "main": "./dist/commonjs/index.js", "types": "./dist/commonjs/index.d.ts", "module": "./dist/esm/index.js" }