UNPKG

ketama

Version:

A hash ring implementation using libketama-like hashing.

59 lines (58 loc) 1.75 kB
{ "name": "ketama", "version": "1.0.0", "description": "A hash ring implementation using libketama-like hashing.", "main": "dist/index.js", "module": "dist/esm/index.js", "engines": { "node": ">=10 <11 || >=12" }, "sideEffects": false, "scripts": { "prepublishOnly": "npm run compile", "test": "rimraf dist && tsc && npm run test:unit && npm run test:lint && npm run test:fmt && npm run test:md", "test:unit": "mocha", "test:lint": "eslint \"src/**/*.ts\"", "test:fmt": "prettier --list-different \"src/**/*.ts\" \"*.md\"", "test:md": "remark -f readme.md -q", "fmt": "remark readme.md -f -o readme.md && prettier --write \"src/**/*.ts\" \"*.md\" && npm run test:lint -- --fix", "compile": "rimraf dist && tsc && tsc -p tsconfig.esm.json", "watch": "rimraf dist && tsc --watch" }, "repository": { "type": "git", "url": "git+https://github.com/connor4312/ketama.git" }, "keywords": [ "hashring", "hash-ring", "ketama", "libketama" ], "author": "Connor Peet <connor@peet.io>", "license": "MIT", "bugs": { "url": "https://github.com/connor4312/ketama/issues" }, "homepage": "https://github.com/connor4312/ketama#readme", "devDependencies": { "@types/mocha": "^8.0.4", "@types/node": "^14.14.10", "@typescript-eslint/eslint-plugin": "^4.9.0", "@typescript-eslint/parser": "^4.9.0", "eslint": "^7.14.0", "mocha": "^8.2.1", "prettier": "^2.2.1", "remark-cli": "^9.0.0", "remark-toc": "^7.0.0", "rimraf": "^3.0.2", "source-map-support": "^0.5.19", "typescript": "^4.1.2" }, "prettier": { "printWidth": 100, "arrowParens": "avoid", "singleQuote": true, "trailingComma": "all" } }