π π¨βπ» Need to polyfill Node.jsmodule.createRequire
(<= v12.2.0)? Look no further! This package provides a seamless solution for developers to ensure their code is fully supported across different Node.js versions.π Upgrade your development experience with ease using this polyfill package.
Install
# nyxi
nyxi requireflow
#pnpm
pnpm add requireflow
#npm
npm i requireflow
# yarn
yarn add requireflow
Usage
function createRequire(filename: string | URL): NodeRequire
const createRequire = require('requireflow')
const myRequire = createRequire('path/to/test.js')
const myModule = myRequire('./test-sibling-module')
License
MIT - Made with