JSPM

getbuiltinmodule-ponyfill

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q25848F

    Package Exports

    • getbuiltinmodule-ponyfill

    Readme

    getbuiltinmodule-ponyfill

    Call an async function with the semantics globalThis.process.getBuiltinModule(…) but with backwards compat for bun and old node.

    The implementation will be aliased to globalThis.process.getBuiltinModule once the ecosystem has sufficient compatibility.

    Usage

    Example

    import { getBuiltinModule } from "getbuiltinmodule-ponyfill";
    
    const { Worker: NodeWorker } = await getBuiltinModule("node:worker_threads");