Skip to content

Instantly share code, notes, and snippets.

@matmen
matmen / util.inspect.js
Created February 16, 2021 19:31
util.inspect polyfill
'use strict';
const UMP = {};
export default function inspect(
value: any,
{ depth = 2, hidden = false } = {}
): string | Promise<String> {
if (is.number(value)) return `${value}`;
if (is.regexp(value)) return `${value}`;
if (is.bigint(value)) return `${value}n`;

⚠️ This is not the documentation for ImageScript. You can find the ImageScript documentation here.


Image Tags

The following commands / statements are valid:

load <url> <imageName> - Loads the given URL and saves it as imageName