From 89b23a5f7b0ccdcdda1d7d4d3eafb6903156d186 Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Wed, 30 Jan 2019 08:21:00 +0900 Subject: [PATCH] doc: use const in lib/fetch-package-metadata.md (#120) PR-URL: https://github.com/npm/cli/pull/120 Credit: @watilde Reviewed-By: @aeschright --- lib/fetch-package-metadata.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fetch-package-metadata.md b/lib/fetch-package-metadata.md index 6fe4beac6eeed..7b4562341b1cb 100644 --- a/lib/fetch-package-metadata.md +++ b/lib/fetch-package-metadata.md @@ -1,7 +1,7 @@ fetch-package-metadata ---------------------- - var fetchPackageMetadata = require("npm/lib/fetch-package-metadata") + const fetchPackageMetadata = require("npm/lib/fetch-package-metadata") fetchPackageMetadata(spec, contextdir, callback) This will get package metadata (and if possible, ONLY package metadata) for