Skip to content

taterbase/node-mongotop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-mongotop

Simple interface to mongotop for Node.js. Requires mongotop to be installed.

Usage

var mtop = require('mongotop')
  , stream = mtop({
	  	    ipv6: true, 
  		    locks: true, 
		    host: 'localhost', 
		    port: '27017', 
		    username: 'jim', 
		    password: 'password', 
		    sleep: 30
		  })

stream.on('data', function(data) {
  //Do things with the data
})

stream.on('error', function(error) {
  //Do things with the error
})

stream.pipe(someWriteableStream)

######Made with love by @taterbase

About

Simple interface to mongotop for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published