Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhijithvijayan/emoji-log
Log to console with emojis 🦄
https://github.com/abhijithvijayan/emoji-log
console emoji error javascript log npm unicorn
Last synced: about 2 months ago
JSON representation
Log to console with emojis 🦄
- Host: GitHub
- URL: https://github.com/abhijithvijayan/emoji-log
- Owner: abhijithvijayan
- License: mit
- Created: 2020-04-28T08:44:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T15:17:50.000Z (over 2 years ago)
- Last Synced: 2024-10-11T20:32:01.791Z (2 months ago)
- Topics: console, emoji, error, javascript, log, npm, unicorn
- Language: TypeScript
- Homepage:
- Size: 309 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license
Awesome Lists containing this project
README
emoji-log
Log to console with emojis 🦄
🙋♂️ Made by @abhijithvijayan
❤️ it? ⭐️ it on [GitHub](https://github.com/abhijithvijayan/emoji-log/stargazers) or [Tweet](https://twitter.com/intent/tweet?text=Check%20out%20emoji-log%21%20by%20%40_abhijithv%0A%0ALog%20to%20console%20with%20emojis%20🦄%0Ahttps%3A%2F%2Fgithub.com%2Fabhijithvijayan%2Femoji-log%0A%0A%23console%20%23javascript%20%23typescript%20%23emoji%20%23npm) about it.
```
Art by Colin J. Randall\
\
\\
\\
>\/7
_.-(6' \
(=___._/` \
) \ |
/ / |
/ > /
j < _\
_.-' : ``.
\ r=._\ `.
<`\\_ \ .`-.
\ r-7 `-. ._ ' . `\
\`, `-.`7 7) )
\/ \| \' / `-._
|| .'
\\ (
>\ >
,.-' >.'
<.'_.''
<'
```## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Issues](#issues)
- [🐛 Bugs](#-bugs)
- [LICENSE](#license)## Installation
Ensure you have [Node.js](https://nodejs.org) 10 or later installed. Then run the following:
```
# npm
npm install emoji-log# yarn
yarn add emoji-log
```## Usage
```
# commonjs
require('emoji-log');# js or ts
import 'emoji-log';# Logging
> console.emoji();
> console.emoji(null);
> console.emoji(undefined);
> console.emoji('hello world');
> console.emoji('🦄', 'hello world'); # with custom emoji & data
> console.emoji('🐸', {hello: 'world'}); # maybe objects
> console.emoji('🔥', new Error('I set the length and emoji'), 15); # with custom emoji, data & line limit length```
***Browser***
***Node***## Issues
_Looking to contribute? Look for the [Good First Issue](https://github.com/abhijithvijayan/emoji-log/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22)
label._### 🐛 Bugs
Please file an issue [here](https://github.com/abhijithvijayan/emoji-log/issues/new) for bugs, missing documentation, or unexpected behavior.
[**See Bugs**](https://github.com/abhijithvijayan/emoji-log/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3A+bug%22)
## Linting & TypeScript Config
- Shared Eslint & Prettier Configuration - [`@abhijithvijayan/eslint-config`](https://www.npmjs.com/package/@abhijithvijayan/eslint-config)
- Shared TypeScript Configuration - [`@abhijithvijayan/tsconfig`](https://www.npmjs.com/package/@abhijithvijayan/tsconfig)## Credits
- Thanks to [Robert Steele](https://antempus.dev/) for the idea of [unifying emojis](https://twitter.com/antempus/status/1255231242792042497)
- This is sort of a fork of [this idea](https://twitter.com/wesbos/status/1254836059109642240) by [wesbos](https://github.com/wesbos)
- Special thanks to [Jason Laster](https://github.com/jasonLaster) for transferring `emoji-log` name## License
MIT © [Abhijith Vijayan](https://abhijithvijayan.in)