UNPKG

@gameroom/cli

Version:

A command line tool for Gameroom

15 lines (13 loc) 708 B
const pluralize = require('pluralize'), { grGreen, percentageDifference } = require('../helpers'), { config, spinner } = require('../refs') module.exports = async (options) => { spinner.text = `testing ${grGreen('gameroom')}` spinner.start() spinner.info(`percentageDifference(5, 10) = ${percentageDifference(5, 10)}`) spinner.info(`percentageDifference(10, 5) = ${percentageDifference(10, 5)}`) spinner.info(`percentageDifference(5, 5) = ${percentageDifference(5, 5)}`) spinner.info(`percentageDifference(20, 80) = ${percentageDifference(20, 80)}`) spinner.info(`percentageDifference(45, 50) = ${percentageDifference(45, 50)}`) spinner.succeed(`tested ${grGreen('gameroom')}`).stop() }