From b365a672b2407a11512d47051aea1a8fe9abc749 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 28 Oct 2020 19:05:28 -1000 Subject: [PATCH] standard --- bin/cmd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index f07757b..1a35259 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -1,16 +1,16 @@ #!/usr/bin/env node -var CompactToStylishStream = require('../') -var minimist = require('minimist') +const CompactToStylishStream = require('../') +const minimist = require('minimist') -var argv = minimist(process.argv.slice(2), { +const argv = minimist(process.argv.slice(2), { boolean: [ 'stdin' ] }) if (!process.stdin.isTTY || argv._[0] === '-' || argv.stdin) { - var snazzy = new CompactToStylishStream() + const snazzy = new CompactToStylishStream() // Set the process exit code based on whether snazzy found errors process.on('exit', function (code) {