Module resolving and loading utilities with TypeScript support.
npm install @boost/moduleLoad and resolve custom file types at runtime with a more powerful Node.js require replacement.
``ts
import { requireModule } from '@boost/module';
const result = requireModule('./some/non-js/file.ts');
`
Or with next-generation Node.js hooks.
`bash`
node --import @boost/module/register ./path/to/entry-point.mjs
- CommonJS based importing with requireModule()
- CommonJS interoperability with ESM-like files
- ECMAScript module based importing with a custom Node.js hook
- Supported file types: TypeScript
```
yarn add @boost/module
- https://boostlib.dev/docs/module
- https://boostlib.dev/api/module