perceptual-hash
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Perceptual Hash

Generate content-based image hashes on Node.js.

Installation

pnpm add perceptual-hash
npm add perceptual-hash
yarn add perceptual-hash

Usage

import { generateHash } from "perceptual-hash";

const imageHash = await generateHash(new Uint8Array(Buffer.from(imageBufferHere)));
// => 0773063f063f36070e...

API

generateHash(Uint8Array, bits?: number); // => Promise<string | null>

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i perceptual-hash

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

4.25 kB

Total Files

7

Last publish

Collaborators

  • ray_1337