isomorphic-image-hash
Version:
A dhash library that works in both browsers and Node.js.
53 lines (52 loc) • 1.16 kB
JSON
{
"name": "isomorphic-image-hash",
"version": "0.2.0",
"description": "A dhash library that works in both browsers and Node.js.",
"main": "./dist/index.cjs",
"types": "./dist/index.d.cts",
"module": "./dist/index.mjs",
"exports": {
".": {
"browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.cjs"
},
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./browser": {
"import": "./dist/browser.mjs",
"require": "./dist/browser.cjs"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"scripts": {
"build": "tsdown",
"test": "vitest run",
"prepublishOnly": "npm run test && npm run build"
},
"keywords": [
"image",
"hash",
"dhash"
],
"author": "iMasanari",
"license": "MIT",
"dependencies": {
"jpeg-js": "^0.4.4",
"omggif": "^1.0.10",
"pngjs": "^7.0.0"
},
"devDependencies": {
"@types/omggif": "^1.0.5",
"@types/pngjs": "^6.0.5",
"jimp": "^1.6.1",
"tsdown": "^0.21.8",
"typescript": "^6.0.2",
"vi-fetch": "^0.8.0",
"vitest": "^4.1.4"
}
}