Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

create-require

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

create-require

Polyfill for Node.js module.createRequire (<= v12.2.0)

    1.1.1latest

Version published
Maintainers
1
Weekly downloads
10,482,764
decreased by-9.73%

Weekly downloads

Changelog

Source

1.1.1 (2020-11-26)

Bug Fixes

  • types: explicitly import the URL type (#3) (66a98cc)

Readme

Source

create-require

npm version npm downloads Github Actions Codecov

Polyfill for Node.js module.createRequire (<= v12.2.0)

Install

yarn add create-require npm install create-require

Usage

function createRequire (filename: string | URL): NodeRequire; const createRequire = require('create-require') const myRequire = createRequire('path/to/test.js') const myModule = myRequire('./test-sibling-module')

License

MIT

FAQs

What is create-require?

Polyfill for Node.js module.createRequire (<= v12.2.0)

Is create-require popular?

The npm package create-require receives a total of 8,443,216 weekly downloads. As such, create-require popularity was classified as popular.

Is create-require well maintained?

We found that create-require demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 26 Nov 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc