Navigator Prefabricating Marinates

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

    3.1.0 • Public • Published

    Modules - Boost

    Build Status npm version npm deps

    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 loaders.

    node --experimental-loader @boost/module/loader.mjs ./path/to/entry-point.mjs

    Features

    • CommonJS based importing with requireModule()
    • CommonJS interoperability with ESM-like files
    • ECMAScript module based importing with a custom ESM loader
    • Supported file types: TypeScript (.ts, .tsx)

    Installation

    yarn add @boost/module
    

    Documentation

    Install

    npm i @boost/module

    DownloadsWeekly Downloads

    2,427

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    43.9 kB

    Total Files

    25

    Last publish

    Collaborators

    • milesj