UNPKG

@silverwind/ioredis-mock

Version:

This library emulates ioredis by performing all operations in-memory.

130 lines (129 loc) 3.58 kB
{ "name": "@silverwind/ioredis-mock", "version": "1.0.1", "description": "This library emulates ioredis by performing all operations in-memory.", "license": "MIT", "author": "Cody Olsen <stipsan@gmail.com>", "homepage": "https://github.com/stipsan/ioredis-mock#readme", "repository": { "type": "git", "url": "git+https://github.com/stipsan/ioredis-mock.git" }, "bugs": { "url": "https://github.com/stipsan/ioredis-mock/issues" }, "main": "./lib", "files": [ "example.js", "jest.js", "lib/" ], "scripts": { "build:babel": "npx rimraf lib && npx mkdirp lib && babel src --out-dir lib", "build:jest.js": "esbuild src/index.js --bundle --external:fengari --external:fengari-interop --external:lodash --external:minimatch --external:standard-as-callback --outfile=jest.js --platform=node --target=node10", "codeclimate": "codeclimate-test-reporter < ./coverage/lcov.info", "precoverage": "npx rimraf coverage && npx mkdirp coverage", "coverage": "npm test -- --coverage", "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "lint": "eslint .", "prepublishOnly": "npm run build:babel && npm run build:jest.js", "semantic-release": "semantic-release pre && npm publish && semantic-release post", "test": "jest", "test:jest.js": "jest --config jest.config.jest.js", "test:e2e": "jest --config jest.config.redis.js", "update-compat": "node scripts/update-compat && git add compat.md README.md && git commit --quiet -m \"docs: Update feature compat table\" &> /dev/null || true" }, "dependencies": { "fengari": "^0.1.4", "fengari-interop": "^0.1.2", "lodash": "^4.17.21", "standard-as-callback": "^2.1.0" }, "peerDependencies": { "ioredis": "4.x", "redis-commands": "1.x" }, "devDependencies": { "@babel/cli": "^7.13.14", "@babel/core": "^7.13.15", "@babel/preset-env": "^7.13.15", "@babel/register": "^7.13.14", "babel-eslint": "^10.1.0", "bluebird": "^3.7.2", "chance": "^1.1.7", "codeclimate-test-reporter": "^0.5.1", "coveralls": "^3.1.0", "esbuild": "^0.11.12", "eslint": "^7.24.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-config-prettier": "^8.2.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^24.3.5", "husky": "^6.0.0", "ioredis": "^4.19.2", "jest": "^27.0.0", "jest-circus": "^27.0.0", "lint-staged": "^11.0.0", "prettier": "^2.2.1", "prettier-package-json": "^2.1.3", "redis-commands": "^1.7.0", "stream-mock": "^2.0.5" }, "keywords": [ "fakeredis", "in-memory", "ioredis", "ioredis-mock", "mock-ioredis", "mock-redis", "redis", "redis fake", "redis inmemory", "redis js", "redis memory", "redis mock", "redis standalone", "redis test", "redis testing", "redis-js", "redis-mock", "redisjs" ], "engines": { "node": ">=10" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.js": [ "eslint --fix", "prettier --write", "git add" ], "*.json": [ "prettier --write", "git add" ], "*.md": [ "prettier --write", "git add" ], "package.json": [ "prettier-package-json --write", "git add" ] }, "prettier": { "singleQuote": true, "trailingComma": "es5" }, "release": { "prepare": [ "@semantic-release/npm" ] }, "runkitExampleFilename": "example.js" }