KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
mongoose-write-stream
★ 14
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
contribot
:
Simple way to award your open source contributors
mslog
:
a simple and easy to use erlang log app
wart
:
Extends the Pimple dependency injection container and provides auto class resolving, instantiation and (constructor) injection
hash-plugin
:
Hash Plugin for SA-MP
meatspackles
:
Meatspac.es Bots
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
mongoose-write-stream
?
Download (.md)
mongoose-write-stream ===================== Super simple mongoose plugin that adds writable streams to your models. ## Example ```javascript var mongoose = require('mongoose'); var csv = require('csv-stream'); var request = require('request'); var zlib = require('zlib'); mongoose.connect('mongodb://127.0.0.1:27017/example'); mongoose.plugin(require('mongoose-write-stream')); var Tick = mongoose.model('Tick', { time: Number, price: Number, quantity: Number }); request('http://api.bitcoincharts.com/v1/csv/bitstampUSD.csv.gz') .pipe(zlib.createGunzip()) .pipe(csv.createStream({ columns: ['time', 'price', 'quantity'] })) .pipe(Tick.writeStream()); ```