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/bugs.js')
-rw-r--r--lib/bugs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bugs.js b/lib/bugs.js
index a0cef4c5e..5085a25b4 100644
--- a/lib/bugs.js
+++ b/lib/bugs.js
@@ -43,6 +43,9 @@ class Bugs extends BaseCommand {
if (typeof mani.bugs === 'object' && mani.bugs.url)
return mani.bugs.url
+
+ if (typeof mani.bugs === 'object' && mani.bugs.email)
+ return `mailto:${mani.bugs.email}`
}
// try to get it from the repo, if possible