UNPKG

make-deno-edition

Version:

Automatically makes package.json projects (such as npm packages and node.js modules) compatible with Deno.

25 lines (19 loc) 599 B
import chalk from 'chalk' import { inspect as utilInspect } from 'util' export function inspect(a: any): any { if (typeof a === 'string') return a else if (a instanceof Set) return Array.from(a).map((i) => inspect(i)) else return utilInspect(a, { colors: true, depth: 5 }) } export function special(...m: any) { return chalk.bold.underline.magenta(...m) } export function warn(...m: any) { return chalk.bold.underline.yellow(...m) } export function error(...m: any) { return chalk.bold.underline.red(...m) } export function success(...m: any) { return chalk.bold.underline.green(...m) }