commit 8e074bbebc8cf992a2ec8c88d80f92c9cef48f99
parent b04ee78ca6b4c3ff4d0c41816e3b20a0af4dcd05
Author: finwo <finwo@pm.me>
Date: Mon, 23 Aug 2021 01:21:52 +0200
ALlow nicer imports from ES6/TS, exporting default now
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/index.js b/index.js
@@ -58,6 +58,9 @@ function checkArguments( namedArguments, callback ) {
return callback();
}
+// "default export", allows nicer imports from ES6/TS
+exports.default = exports;
+
// Export helpers
exports._checkArguments = checkArguments;
exports._randomBytes = randomBytes;