mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 11:58:29 +00:00

PR-URL: https://github.com/nodejs/node/pull/3599 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
11 lines
290 B
JavaScript
11 lines
290 B
JavaScript
'use strict'
|
|
var path = require('path')
|
|
var validate = require('aproba')
|
|
var moduleName = require('../utils/module-name.js')
|
|
|
|
module.exports = childPath
|
|
function childPath (parentPath, child) {
|
|
validate('SO', arguments)
|
|
return path.join(parentPath, 'node_modules', moduleName(child))
|
|
}
|