var cmd1 = "clients -m 4".split(" "); var cmd2 = "jobs -m 6".split(" "); var p4nodeapi = require('./build/Release/p4nodeapi'); hi = new p4nodeapi.P4NodeApi(); hi.run(cmd1,function(err,data){ console.log(data); console.log(err); }); hi2 = new p4nodeapi.P4NodeApi(); hi2.run(cmd2,function(err,data){ console.log(data); console.log(err); });
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16451 | Liz Lam | "Forking branch Main of matt-attaway-p4nodeapi to liz_lam-p4nodeapi." | ||
//guest/matt_attaway/p4nodeapi/test/test2.js | |||||
#1 | 8517 | Matt Attaway |
Add a node.js language binding for Perforce This is fairly simple extension for node to make it easier to run Perforce commands from your node.js application. We've used this a fair amount internally, but it hasn't seen the same level of love as the other Perforce APIs. This API is not supported by Perforce support, but you are welcome to post on the forums if you have questions. |