requireflow
TypeScript icon, indicating that this package has built-in type declarations

0.0.3Β β€’Β PublicΒ β€’Β Published

cover npm version npm downloads bundle JSDocs License

πŸ”ŒπŸ‘¨β€πŸ’» Need to polyfill Node.js module.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 πŸ’ž

Readme

Keywords

none

Package Sidebar

Install

npm i requireflow

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

6.58 kB

Total Files

6

Last publish

Collaborators

  • dennisollhoff