tra-analysis/website/node_modules/npm/lib/utils/child-path.js
2019-01-06 13:14:45 -06:00

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))
}