Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including fleet-get-ps with all npm packages installed. Try it out:

var fleetGetPs = require("fleet-get-ps")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

fleet-get-ps v1.0.1

get the running fleet processes as an object

Fleet Get PS

Get the running fleet processes as an object. The output is the same as running fleet-ps but is returned as an object rather than a string


npm install -S fleet-get-ps


var getPS = require('fleet-get-ps')
var data = {
  host: 'localhost',   // fleet hub host
  port: 7000,          // fleet hub port
  secret: 'foo_secret, // fleet hub secret
getPS(data, function (err, reply) {
  if (err) {
    inspect(err, 'error getting fleet ps data')
  inspect(reply, 'fleet ps data')


# install the development dependencies
npm install
# run the tests
npm test


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free