New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

requireflow

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requireflow

🛡️🔄 Easily backfill the module.createRequire method for your Node.js project with this package!

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
6
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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 💞

FAQs

Package last updated on 11 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts