node-module-polyfill

v1.0.1
Polyfills for the Node.Module interface
node.Module createRequire createRequireFromPath require polyfill

node-module-polyfill Build Status Coverage Status

A polyfill for Node.Module.

Uses code from Node.js v12.11, tested back to v8.

Usage:

const Module = require("module");
require("node-module-polyfill");

or

import Module from 'module';
import 'node-module-polyfill';
npm i node-module-polyfill

Metadata

  • ISC
  • Whatever
  • Danielle Church
  • released 10/3/2019

Downloads

Maintainers