Home
last modified time | relevance | path

Searched refs:createRequireFromPath (Results 1 – 10 of 10) sorted by relevance

/third_party/node/test/parallel/
Dtest-module-create-require-from-directory.js7 const { createRequireFromPath } = require('module');
12 const req = createRequireFromPath(p);
13 const reqFromNotDir = createRequireFromPath(fixPath);
Dtest-module-create-require.js7 const { createRequire, createRequireFromPath } = require('module');
12 const req = createRequireFromPath(p);
/third_party/node/doc/api/
Dmodule.md62 ### `module.createRequireFromPath(filename)`
75 const { createRequireFromPath } = require('module');
76 const requireUtil = createRequireFromPath('../src/utils/');
Dmodules.md993 …module.html#module_module_createrequirefrompath_filename">`module.createRequireFromPath(filename)`…
Ddeprecations.md2358 ### DEP0130: `Module.createRequireFromPath()`
2371 Module.createRequireFromPath() is deprecated. Please use
/third_party/node/test/es-module/
Dtest-esm-json-cache.mjs6 import { createRequireFromPath as createRequire } from 'module';
/third_party/node/lib/internal/modules/cjs/
Dloader.js1147 function createRequireFromPath(filename) { function
1164 Module.createRequireFromPath = deprecate(
1165 createRequireFromPath,
1190 return createRequireFromPath(filepath);
/third_party/node/doc/changelogs/
DCHANGELOG_V12.md3162 …s://github.com/nodejs/node/commit/7e750868c6)] - **doc**: replace createRequireFromPath() referenc…
3208 …ps://github.com/nodejs/node/commit/140b44f3ea)] - **module**: fix createRequireFromPath() slash lo…
3290 …existing `createRequireFromPath()` method is now deprecated (Myles Borins) [#27405](https://github…
3336 …de/commit/be9a1ec1d1)] - **module**: allow passing a directory to createRequireFromPath (Gilles De…
DCHANGELOG_V13.md1889 * `module.createRequireFromPath()` is deprecated. Use `module.createRequire()`
1948 …t/14701e539c)] - **(SEMVER-MAJOR)** **module**: runtime deprecate createRequireFromPath() (cjihrig…
DCHANGELOG_V10.md1784 * Added `module.createRequireFromPath(filename)`. This new method can be used