UNPKG

yunlongzha_try_nodejs

Version:

try it

11 lines (9 loc) 300 B
'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)) }