UNPKG

imghash

Version:

Image perceptual hash calculation for node

73 lines (72 loc) 1.75 kB
{ "name": "imghash", "version": "1.1.0", "description": "Image perceptual hash calculation for node", "scripts": { "lint": "eslint src", "typecheck": "tsc --noEmit", "test": "vitest", "e2e": "bats e2e/*.bats", "build": "tsup src/index.ts --format=cjs,esm --dts --cjsInterop", "dev": "tsup src/index.ts --format cjs --watch" }, "repository": { "type": "git", "url": "git+https://github.com/pwlmc/imghash.git" }, "keywords": [ "perceptual", "image", "hash", "phash", "imgseek" ], "author": "Paweł Maciejewski <pwlmaciejewski@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/pwlmc/imghash/issues" }, "engines": { "node": ">=20" }, "homepage": "https://github.com/pwlmc/imghash#readme", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "type": "commonjs", "files": [ "dist", "README.md", "LICENSE" ], "devDependencies": { "@types/node": "^24.1.0", "@typescript-eslint/eslint-plugin": "^8.38.0", "@typescript-eslint/parser": "^8.38.0", "bats": "^1.12.0", "bats-assert": "^2.0.0", "bats-support": "^0.2.0", "eslint": "^9.31.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.1", "leven": "^3.1.0", "prettier": "^3.6.2", "tsup": "^8.5.0", "typescript": "^5.8.3", "typescript-eslint": "^8.38.0", "vitest": "^3.2.4" }, "dependencies": { "@canvas/image": "^2.0.0", "blockhash-core": "^0.1.0", "image-type": "^4.1.0", "jpeg-js": "^0.4.1" } }