5.0.0 • Published 2 months ago
@boost/module v5.0.0
Modules - Boost
Load and resolve custom file types at runtime with a more powerful Node.js require
replacement.
import { requireModule } from '@boost/module';
const result = requireModule('./some/non-js/file.ts');
Or with next-generation Node.js hooks.
node --import @boost/module/register ./path/to/entry-point.mjs
Features
- 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
Installation
yarn add @boost/module
Documentation
5.0.0
2 months ago
5.0.0-alpha.2
2 months ago
5.0.0-alpha.1
3 months ago
4.1.0
1 year ago
4.0.0
2 years ago
4.0.0-alpha.1
2 years ago
3.1.0
2 years ago
3.0.1
3 years ago
3.0.0
3 years ago
2.0.0
3 years ago