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
- Host: GitHub
- URL: https://github.com/eightyfive/console.unicorn
- Owner: eightyfive
- License: mit
- Created: 2020-04-18T05:18:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T23:40:19.000Z (over 3 years ago)
- Last Synced: 2025-03-16T16:48:25.583Z (over 1 year ago)
- Language: JavaScript
- Size: 426 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]);
```