Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/package-id.js')
-rw-r--r--lib/utils/package-id.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/utils/package-id.js b/lib/utils/package-id.js
deleted file mode 100644
index 4048aee4f..000000000
--- a/lib/utils/package-id.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict'
-var moduleName = require('./module-name.js')
-
-module.exports = function (tree) {
- var pkg = tree.package || tree
- // FIXME: Excluding the '@' here is cleaning up after the mess that
- // read-package-json makes. =(
- if (pkg._id && pkg._id !== '@')
- return pkg._id
- var name = moduleName(tree)
- if (pkg.version)
- return name + '@' + pkg.version
- else
- return name
-}