Searched refs:createRequire (Results 1 – 19 of 19) sorted by relevance
7 const { createRequire, createRequireFromPath } = require('module');15 const reqToo = createRequire(u);19 createRequire('https://github.com/nodejs/node/pull/27405/');25 createRequire('../');31 createRequire({});
7 const { createRequire } = require('module');9 const loadFixture = createRequire(fixtures.path('node_modules'));
1 import { createRequire } from 'module';3 const require = createRequire(import.meta.url);98 createRequire
2 import { createRequire } from 'module';4 const rawRequire = createRequire(fileURLToPath(import.meta.url));
1 import {createRequire} from '../../common/index.mjs';3 const require = createRequire(import.meta.url);
3 import {createRequire} from '../../common/index.mjs';5 const require = createRequire(import.meta.url);
1 import { createRequire } from '../common/index.mjs';4 const require = createRequire(import.meta.url);
2 import { createRequire } from '../common/index.mjs';7 const require = createRequire(import.meta.url);
6 import { createRequireFromPath as createRequire } from 'module';13 const require = createRequire(fromURL(import.meta.url));
44 ### `module.createRequire(filename)`55 import { createRequire } from 'module';56 const require = createRequire(import.meta.url);68 > Stability: 0 - Deprecated: Please use [`createRequire()`][] instead.217 [`createRequire()`]: #module_module_createrequire_filename
155 // `module.createRequire()` is being used to create one that is able to161 " require('module').createRequire(process.cwd() + '/');"
430 [`module.createRequire()`][].452 Alternatively `module.createRequire()` can be used.458 They can instead be loaded with [`module.createRequire()`][] or468 Alternatively `module.createRequire()` can be used.825 its own `require` using `module.createRequire()`.836 const { createRequire } = getBuiltin('module');838 const require = createRequire(process.cwd() + '/<preload>');1383 [`module.createRequire()`]: module.md#module_module_createrequire_filename
992 …ename" href="module.html#module_module_createrequire_filename">`module.createRequire(filename)`</a>
2372 [`module.createRequire()`][] instead.2732 [`module.createRequire()`]: module.md#module_module_createrequire_filename
6 import { createRequire } from 'module';10 const require = createRequire(new URL('../../tools/doc/', import.meta.url));
6 import { createRequire } from 'module';11 const require = createRequire(new URL('../../tools/doc/', import.meta.url));
1174 function createRequire(filename) { function1193 Module.createRequire = createRequire;
1325 * [[`25c8a13fde`](https://github.com/nodejs/node/commit/25c8a13fde)] - **doc**: createRequire can t…3163 …https://github.com/nodejs/node/commit/55fe340dc2)] - **doc**: improve createRequire() example (cji…3210 …s://github.com/nodejs/node/commit/c33e83497e)] - **module**: simplify createRequire() validation (…3288 * Added the `createRequire()` method. It allows to create a require function3335 …/nodejs/node/commit/5bcd7700ca)] - **(SEMVER-MINOR)** **module**: add createRequire method (Myles …
1569 * [[`7e603bed52`](https://github.com/nodejs/node/commit/7e603bed52)] - **doc**: createRequire can t…1889 * `module.createRequireFromPath()` is deprecated. Use `module.createRequire()`