@boost/module
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

Modules - Boost

build status npm version

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

Package Sidebar

Install

npm i @boost/module

Weekly Downloads

19,120

Version

5.0.0

License

MIT

Unpacked Size

57.3 kB

Total Files

51

Last publish

Collaborators

  • milesj