Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

"browser" field in package.json #57

@LinusU

Description

@LinusU

How about adding a "browser" field to the package.json, and a small browser shim that simply re-exports window.crypto? That way you could write code that works in Node.js, and also seamlessly works with webpack/browserify/rollup in the browser.

I would be happy to submit a PR 🚀

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions