diff --git a/src/bin/hsm.ts b/src/bin/hsm.ts index 7fd05a5..c004dbb 100755 --- a/src/bin/hsm.ts +++ b/src/bin/hsm.ts @@ -83,8 +83,8 @@ for (let arg of process.argv.slice(2)) { users.map(user => bold((configUsers[user] = configUsers[user] || { colour: colours[Math.floor(Math.random() * colours.length)](user) }).colour) ).join(", ") - } | ${bold(String(minLength))} chars from ${bold(String(srcLength))} | saved ${bold(String(srcLength - minLength))} chars | ${bold(`${Math.round((1 - (minLength / srcLength)) * 100)}%`)} compression | ${bold(`${resolvePath(hackmudPath, users[0], "scripts", basename(file, extname(file)))}.js`)}` - ) + } | ${bold(String(minLength))} chars from ${bold(String(srcLength))} | saved ${bold(String(srcLength - minLength))} (${bold(`${Math.round((1 - (minLength / srcLength)) * 100)}%`)}) | ${bold(`${resolvePath(hackmudPath, users[0], "scripts", basename(file, extname(file)))}.js`)}` + ) ) updateConfig() @@ -120,7 +120,7 @@ for (let arg of process.argv.slice(2)) { users.map(user => bold((configUsers[user] = configUsers[user] || { colour: colours[Math.floor(Math.random() * colours.length)](user) }).colour) ).join(", ") - } | ${bold(String(minLength))} chars from ${bold(String(srcLength))} | saved ${bold(String(srcLength - minLength))} chars | ${bold(`${Math.round((1 - (minLength / srcLength)) * 100)}%`)} compression | ${bold(`${resolvePath(hackmudPath, users[0], "scripts", basename(file, extname(file)))}.js`)}` + } | ${bold(String(minLength))} chars from ${bold(String(srcLength))} | saved ${bold(String(srcLength - minLength))} (${bold(`${Math.round((1 - (minLength / srcLength)) * 100)}%`)}) | ${bold(`${resolvePath(hackmudPath, users[0], "scripts", basename(file, extname(file)))}.js`)}` ), { genTypes } )