child-path.js 290 B

12345678910
  1. 'use strict'
  2. var path = require('path')
  3. var validate = require('aproba')
  4. var moduleName = require('../utils/module-name.js')
  5. module.exports = childPath
  6. function childPath (parentPath, child) {
  7. validate('SO', arguments)
  8. return path.join(parentPath, 'node_modules', moduleName(child))
  9. }