Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nisaacson/fleet-get-ps
get the running fleet processes as an object
https://github.com/nisaacson/fleet-get-ps
Last synced: about 1 month ago
JSON representation
get the running fleet processes as an object
- Host: GitHub
- URL: https://github.com/nisaacson/fleet-get-ps
- Owner: nisaacson
- Created: 2013-05-13T18:10:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-13T18:28:27.000Z (over 11 years ago)
- Last Synced: 2024-09-30T02:07:40.440Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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# Installation
```bash
npm install -S fleet-get-ps
```# Usage
```javascript
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')
return
}
inspect(reply, 'fleet ps data')
})
```# Test
```bash
# install the development dependencies
npm install
# run the tests
npm test
```