/ c4f / front / node_modules / create-require /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[TXT]CHANGELOG.md5 months ago1.3K 
[   ]LICENSE5 months ago1.1K 
[TXT]README.md5 months ago1.4K 
[TXT]create-require.d.ts5 months ago105  
[   ]create-require.js5 months ago1.2K 
[   ]package.json5 months ago1.0K 
README.md

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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80