An open API service indexing awesome lists of open source software.

https://github.com/eightyfive/console.unicorn

I am a UNICORN
https://github.com/eightyfive/console.unicorn

Last synced: 8 months ago
JSON representation

I am a UNICORN

Awesome Lists containing this project

README

          

# `console.unicorn`

## I am Hulk

```js
log("{green; bold}I am hulk");
```

## I am Flash

```js
log("{red; italic}I am flash");
```

## I AM A UNICORN

```js
log("I am a {red}u{green}N{blue}i{yellow}C{magenta}o{cyan}R{white}N");
```

## Usage

```js
const parse = require("console.unicorn");

const [placeholder, ...styles] = parse("{red; italic}I am flash");

console.log.apply(console, [placeholder, ...styles, ...args]);
```