UNPKG

planify

Version:

Plan a series of steps and display the output in a beautiful way

29 lines (23 loc) 579 B
'use strict'; const symbols = { ok: '✓', fail: '✖', run: '-', hr: '━', }; /* istanbul ignore next */ function swapSymbol(name, value) { symbols[name] = value; Object.defineProperty(symbols, '_' + name, { // This is necessary for the tests! value, enumerable: false, }); } // With node.js on Windows: use symbols available in terminal default fonts /* istanbul ignore if */ if (process.platform === 'win32') { swapSymbol('ok', '√'); swapSymbol('fail', '×'); swapSymbol('hr', '-'); } module.exports = symbols;