Skip to content

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

Description

@pwlmc

Why?

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions