Sha256: 83a5949916bf8324e960804487582c0725b2a542089227605dcd90ba57e3889f
Contents?: true
Size: 485 Bytes
Versions: 46
Compression:
Stored size: 485 Bytes
Contents
'use strict'; var path = require('path'); var Module = require('module'); module.exports = function (fromDir, moduleId) { if (typeof fromDir !== 'string' || typeof moduleId !== 'string') { throw new TypeError('Expected `fromDir` and `moduleId` to be a string'); } fromDir = path.resolve(fromDir); var fromFile = path.join(fromDir, 'noop.js'); return Module._resolveFilename(moduleId, { id: fromFile, filename: fromFile, paths: Module._nodeModulePaths(fromDir) }); };
Version data entries
46 entries across 46 versions & 3 rubygems