node-image-hash
Advanced tools
Comparing version
{ | ||
"name": "node-image-hash", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Perceptual image hash for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,20 @@ | ||
# node-image-hash | ||
# node-image-hash [](https://badge.fury.io/js/node-image-hash) | ||
Perceptual image hash for node.js | ||
## Installation | ||
``` | ||
npm install node-image-hash | ||
``` | ||
## Basic usage | ||
```javascript | ||
const imageHash = require('node-image-hash'); | ||
imageHash | ||
.hash('buffer/or/path/to/file/', 8, 'hex') | ||
.then((hash) => { | ||
console.log(hash); // '83c3d381c38985a5' | ||
}); | ||
``` |
540321
0.07%20
566.67%