https://github.com/node-libraries/daynamic-import
https://github.com/node-libraries/daynamic-import
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/node-libraries/daynamic-import
- Owner: node-libraries
- Created: 2023-06-22T06:55:40.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-22T23:45:58.000Z (almost 2 years ago)
- Last Synced: 2025-02-24T03:18:43.010Z (3 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @node-libraries/dynamic-import
Avoid malfunction of DynamicImport on `ts-node` and call ES Modules from CommonJS
## usage
```typescript
import {dynamicImport} from "@node-libraries/dynamic-import";const async main() => {
const { func } = await dynamicImport("any-package");
}
```