https://github.com/zerotohero-dev/darth
Charts stuff to the terminal.
https://github.com/zerotohero-dev/darth
Last synced: 11 months ago
JSON representation
Charts stuff to the terminal.
- Host: GitHub
- URL: https://github.com/zerotohero-dev/darth
- Owner: zerotohero-dev
- Created: 2015-12-16T15:28:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-30T05:18:36.000Z (over 10 years ago)
- Last Synced: 2024-04-14T11:35:49.957Z (about 2 years ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
.-. MIT Licensed.
|_:_|
/(_Y_)\ Original code belongs to T.J.
( \/M\/ ) Couldn’t find the code in npm,
_.'-/'-'\-'._ hence I published under a new name.
/.--'[[][]'--.\ I’ll create a proper README and stuff
when I have time.
Until then…
May the source be with you.
```
## Usage Example
```javascript
import chart from 'darth';
import clear from 'clear';
let data = [];
for ( i = 0; i < 100; i++ ) {
data.push( Math.random() * 100 );
}
setInterval( () => {
data.push( Math.random() * 100 );
clear();
chart( data );
}, 1000 );
```
// TODO: add a screenshot of the output.