UNPKG

super-project-cli

Version:

CLI for creating project based on Super Project.

25 lines (21 loc) 547 B
const ora = require('ora') module.exports = (options = {}) => { const waiting = ora( Object.assign( { spinner: 'dots', color: 'cyan' }, typeof options === 'string' ? { text: options } : options ) ).start() waiting.finish = (options = {}) => { waiting.color = 'green' waiting.stopAndPersist(Object.assign({ symbol: '√' }, options)) } return waiting }