Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gswalden/tickertape
Generate a ticker tape for any number of simulated stocks
https://github.com/gswalden/tickertape
Last synced: 8 days ago
JSON representation
Generate a ticker tape for any number of simulated stocks
- Host: GitHub
- URL: https://github.com/gswalden/tickertape
- Owner: gswalden
- License: isc
- Created: 2016-01-07T23:04:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-07T23:14:11.000Z (almost 9 years ago)
- Last Synced: 2024-09-25T21:59:26.793Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build status](https://travis-ci.org/gswalden/tickertape.svg?branch=master)](https://travis-ci.org/gswalden/tickertape)
[![Dependencies](https://david-dm.org/gswalden/tickertape.svg)](https://david-dm.org/gswalden/tickertape)### Install
```sh
npm install --save ticker-tape
```---
### Use
```js
var TickerTape = require('ticker-tape')
, tape = new TickerTape()
;tape.on('tick', function(stock) {
console.log('Stock symbol: ' stock.symbol);
console.log('Stock price: ' stock.price);
console.log('Stock volume: ' stock.volume);
});
```---
### Tests
```sh
npm test
```