Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmis1000/pm2-2.x-rpc
dnode wrapper for pm2 2.x api
https://github.com/mmis1000/pm2-2.x-rpc
Last synced: about 2 months ago
JSON representation
dnode wrapper for pm2 2.x api
- Host: GitHub
- URL: https://github.com/mmis1000/pm2-2.x-rpc
- Owner: mmis1000
- Created: 2017-08-07T10:32:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T04:43:43.000Z (about 6 years ago)
- Last Synced: 2024-10-31T07:49:34.206Z (3 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pm2-2.x-rpc
Dnode wrapper for `pm2` 2.x api
Usage:
```javascript
var dnode = require('dnode');
var Server = require('pm2-2.x-rpc').Server;
var server = new Server();
var client = dnode();
// pipe the stream through any transport
client.pipe(server).pipe(client);
client.on('remote', function (pm2) {
// got the pm2 instance
// use whatever pm2 api method
pm2.connect(function (err) {
assert.ok(!err);
})
})
```