mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 18:26:05 +00:00

PR-URL: https://github.com/nodejs/node/pull/4958 Reviewed-By: Myles Borins <mborins@us.ibm.com> Reviewed-By: Kat Marchán <kzm@sykosomatic.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 lines
243 B
JavaScript
9 lines
243 B
JavaScript
'use strict'
|
|
var uniqueFilename = require('unique-filename')
|
|
var moduleName = require('../utils/module-name.js')
|
|
|
|
module.exports = buildPath
|
|
function buildPath (staging, pkg) {
|
|
return uniqueFilename(staging, moduleName(pkg), pkg.realpath)
|
|
}
|