UNPKG

aliyun-oss-deploy

Version:

An aliyun oss deploy tool, putObject and putStream are all supported.

10 lines (8 loc) 247 B
const chalk = require('chalk'); const figures = require('figures'); module.exports = function assert(condition, errorMsg) { if (!condition) { console.log(chalk.bold.red(figures.cross), chalk.bold.red(errorMsg)); process.exit(0); } };