load-esm
Version:
Utility to dynamically load ESM modules in TypeScript CommonJS projects
77 lines (76 loc) • 1.72 kB
JSON
{
"name": "load-esm",
"version": "1.0.3",
"type": "commonjs",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "mocha",
"compile-test": "tsc -p test"
},
"files": [
"index.js",
"index.d.ts"
],
"author": {
"name": "Borewit",
"url": "https://github.com/Borewit"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/Borewit"
},
{
"type": "buymeacoffee",
"url": "https://buymeacoffee.com/borewit"
}
],
"license": "MIT",
"description": "Utility to dynamically load ESM modules in TypeScript CommonJS projects",
"repository": {
"type": "git",
"url": "git+https://github.com/Borewit/load-esm.git"
},
"bugs": {
"url": "https://github.com/Borewit/load-esm/issues"
},
"homepage": "https://github.com/Borewit/load-esm#readme",
"keywords": [
"load-esm",
"ESM",
"Import ESM",
"CJS",
"CommonJS",
"TypeScript",
"Node.js",
"dynamic import",
"dynamic module loading",
"dynamic load",
"JavaScript modules",
"CJS ESM interoperability",
"import ESM in CommonJS",
"typescript commonjs import esm",
"module interoperability",
"node esm loader",
"mixed module",
"dynamic esm import typescript",
"cjs to esm bridge",
"ERR_REQUIRE_ESM",
"require ESM error",
"ERR_PACKAGE_PATH_NOT_EXPORTED",
"No \"exports\" main defined in",
"exports not defined error"
],
"engines": {
"node": ">=13.2.0"
},
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.2",
"chai": "^4.3.4",
"mocha": "^11.0.1",
"typescript": "^5.7.2"
}
}