diff --git a/package-lock.json b/package-lock.json index d1ae9e5e..226ff13f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wtfjs", - "version": "1.22.0", + "version": "1.22.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 5f4f09c2..b3dcb9d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wtfjs", - "version": "1.22.0", + "version": "1.22.1", "description": "A list of funny and tricky JavaScript examples", "bin": { "wtfjs": "wtfjs.js" diff --git a/wtfjs.js b/wtfjs.js index b1db9199..a748d257 100755 --- a/wtfjs.js +++ b/wtfjs.js @@ -21,33 +21,33 @@ const cli = meow( "", "Examples", " wtfjs", - " wtfjs --lang pt-br" + " wtfjs --lang pt-br", ], { string: ["lang"], alias: { l: "lang", - h: "help" + h: "help", }, default: { - lang: "" - } + lang: "", + }, } ); const boxenOpts = { borderColor: "yellow", margin: { - bottom: 1 + bottom: 1, }, padding: { right: 1, - left: 1 - } + left: 1, + }, }; const mseeOpts = { - paragraphEnd: "\n\n" + paragraphEnd: "\n\n", }; const notifier = updateNotifier({ pkg }); @@ -66,7 +66,7 @@ const translation = join( !lang ? "./README.md" : `./README-${lang}.md` ); -fs.stat(translation, function(err, stats) { +fs.stat(translation, function (err, stats) { if (err) { console.log("The %s translation does not exist", chalk.bold(lang)); return; @@ -74,14 +74,12 @@ fs.stat(translation, function(err, stats) { fs.createReadStream(translation) .pipe( - obj(function(chunk, enc, cb) { + obj(function (chunk, enc, cb) { const message = []; if (notifier.update) { message.push( - `Update available: {green.bold ${ - notifier.update.latest - }} {dim current: ${notifier.update.current}}` + `Update available: {green.bold ${notifier.update.latest}} {dim current: ${notifier.update.current}}` ); message.push(`Run {blue npm install -g ${pkg.name}} to update.`); this.push(boxen(message.join("\n"), boxenOpts));