pwlmaciejewski / imghash

Perceptual image hashing for Node.js
MIT License
170 stars 19 forks source link

Change API to take options object as a second parameter #88

Open pwlmaciejewski opened 3 years ago

pwlmaciejewski commented 3 years ago

Why?

https://github.com/pwlmaciejewski/imghash/pull/78 changed the API slightly: it will always return a promise where previously it would throw early.

It's a breaking change so it's also a good time to update the API to be easier to work with.

What?

Change hash signature to be:

hash(filepath: string, {
  format: string,
  bits: number
})
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.