diff --git a/browser.js b/browser.js new file mode 100644 index 0000000..c56d4ea --- /dev/null +++ b/browser.js @@ -0,0 +1,7 @@ +'use strict' + +/** + * Export + * @ignore + */ +module.exports = window.crypto diff --git a/package.json b/package.json index 277cf30..5c66419 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.9.2", "description": "WebCrypto API for Node.js", "main": "src/index.js", + "browser": "browser.js", "types": "index.d.ts", "directories": { "test": "test"