Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elisherer/redis-lolwut
Port of redis LOLWUT command to JavaScript (NodeJS)
https://github.com/elisherer/redis-lolwut
Last synced: about 5 hours ago
JSON representation
Port of redis LOLWUT command to JavaScript (NodeJS)
- Host: GitHub
- URL: https://github.com/elisherer/redis-lolwut
- Owner: elisherer
- License: bsd-3-clause
- Created: 2020-03-26T10:32:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T13:52:37.000Z (over 4 years ago)
- Last Synced: 2024-10-14T00:36:44.207Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redis-lolwut
[![npm version](https://badge.fury.io/js/redis-lolwut.svg)](https://npm.im/redis-lolwut)Port of redis LOLWUT command to JavaScript (NodeJS)
Quote:
```
The command should do something fun and interesting,
and should be replaced by a new implementation at each new version of Redis.
```## Installation
```sh
npm i -g redis-lolwut
```## Usage
LOLWUT [VERSION ] [... version specific arguments ...]
Example:
```sh
$ lolwut
```
### Version 5LOLWUT VERSION 5 [terminal columns] [squares-per-row] [squares-per-col]
By default the command uses 66 columns, 8 squares per row, 12 squares
per column.Examples:
```sh
$ lolwut version 5
```
```sh
$ lolwut version 5 66 8 12
```### Version 6
LOLWUT [VERSION 6] [columns] [rows]
* Version 6 is the defaultBy default the command uses 80 columns, 40 squares per row per column.
Examples:
```sh
$ lolwut
```
```sh
$ lolwut 80 40
```
```sh
$ lolwut version 6 80 40
```## References
* [LOLWUT: a piece of art inside a database command](http://antirez.com/news/123) - Blog post
* [LOLWUT Command on redis.io](https://redis.io/commands/lolwut) - Official docs
* [Official GitHub](https://github.com/antirez/redis/blob/unstable/src/lolwut.c) - Redis source code## Author
Originally created by [Salvatore Sanfilippo](https://github.com/antirez)
NodeJS Port by [Eli Sherer](https://github.com/elisherer)