imghash icon indicating copy to clipboard operation
imghash copied to clipboard

Change API to take options object as a second parameter

Open pwlmaciejewski opened this issue 4 years ago • 2 comments

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
})

pwlmaciejewski avatar Dec 27 '20 15:12 pwlmaciejewski

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] avatar Mar 19 '21 22:03 stale[bot]

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] avatar Apr 17 '22 00:04 stale[bot]