From 7b638d58d99fa015adaae759696b88f9206fe297 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Tue, 5 Jun 2018 12:36:19 +0100 Subject: Update pkg93.js --- pkg93.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg93.js b/pkg93.js index c5567c9..83de03b 100644 --- a/pkg93.js +++ b/pkg93.js @@ -276,14 +276,15 @@ pkg93 rm kebab if (args.length > 2) { cli.log("ERR No package specified."); } else { - var pkgInfo = JSON.parse(await pkg93.pkgInfo(args[1])); + var pkgInfo = await pkg93.pkgInfo(args[1]); if (!pkgInfo) { cli.log("ERR Either the package doesn't exist, or an error occoured.") } else { depends = pkgInfo.dependencies ? pkgInfo.dependencies.join(" , ") : "None!"; + description = pkgInfo.description ? pkgInfo.description : "None!"; console.log(pkgInfo); cli.log(`${pkgInfo.name} -Description: ${pkgInfo.description} +Description: ${description} Dependencies: ${depends}`); } } -- cgit v1.2.3