mirror of
https://github.com/gchq/CyberChef
synced 2025-12-20 10:13:42 +00:00
Improve CJS and ESM module support #1037
This commit is contained in:
11
src/node/wrapper.js
Normal file
11
src/node/wrapper.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Export the main ESM module as CommonJS
|
||||
*
|
||||
*
|
||||
* @author d98762656 [d98762625@gmail.com]
|
||||
* @copyright Crown Copyright 2019
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
module.exports = (async () => await import("./index.mjs"))();
|
||||
module.exports.File = (async () => await import("./File.mjs"))();
|
||||
Reference in New Issue
Block a user