atcheck/lsscanner/new_ubuntu/node_modules/npm/lib/utils/child-path.js

11 lines
290 B
JavaScript
Raw Normal View History

2019-12-16 18:42:21 +01:00
'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))
}