UNPKG

@backgroundjs/core

Version:

An extendible background job queue for js/ts applications

85 lines (84 loc) 2.58 kB
{ "name": "@backgroundjs/core", "version": "1.0.3", "description": "An extendible background job queue for js/ts applications", "type": "module", "main": "./dist/node/index.js", "module": "./dist/bun/index.js", "types": "./dist/node/index.d.ts", "exports": { ".": { "types": "./dist/node/index.d.ts", "import": "./dist/node/index.js", "require": "./dist/node/index.js", "default": "./dist/node/index.js" } }, "scripts": { "build": "npm run clean && npm run build:node && npm run build:bun", "build:bun": "tsc -p tsconfig.bun.json", "build:node": "tsc -p tsconfig.node.json", "test:redis-storage": "vitest run tests/storages/redis-storage.test.ts", "test:storage": "vitest run tests/storages/in-memory-storage.test.ts", "test:distributed": "vitest run tests/queues/distributed-job-queue.test.ts", "test:queue": "vitest run tests/queues/job-queue.test.ts", "test:postgresql": "vitest run tests/queues/postgresql-job-queue.test.ts", "test:mongodb": "vitest run tests/queues/mongodb-job-queue.test.ts", "clean": "rimraf dist", "hono:inmemory": "nodemon --exec tsx examples/hono/server-inmemory.ts", "hono:redis": "nodemon --exec tsx examples/hono/server-redis.ts", "hono:mongo": "nodemon --exec tsx examples/hono/server-mongo.ts", "hono:postgres": "nodemon --exec tsx examples/hono/server-postgres.ts", "express:inmemory": "nodemon --exec tsx examples/express/server.ts" }, "keywords": [ "background-jobs", "queue", "backgroundjs", "bun", "background", "node", "typescript", "job-queue", "job-scheduler", "job-processor", "job-runner", "job-worker", "job-queue-manager", "job-queue-processor" ], "author": "", "license": "MIT", "files": [ "dist", "src", "README.md" ], "peerDependencies": { "ioredis": "^5.6.1", "mongodb": "^6.16.0", "pg": "^8.15.1" }, "devDependencies": { "@hono/node-server": "^1.14.1", "@types/express": "^5.0.1", "@types/pg": "^8.11.14", "@vitest/coverage-v8": "^3.1.1", "dotenv": "^16.5.0", "express": "^5.1.0", "hono": "^4.7.7", "ioredis": "^5.6.1", "mongodb": "6.16.0", "nodemon": "^3.1.10", "pg": "^8.15.1", "prettier": "^3.5.3", "rimraf": "^6.0.1", "ts-node": "^10.9.2", "tsx": "^4.19.3", "typescript": "^5.8.3", "vitest": "^3.1.1" }, "lint-staged": { "*.{ts}": "prettier --write" } }