p4-robot
Node port to perforce
Last updated 5 years ago by imkrimerman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install p4-robot 
SYNC missed versions from official npm registry.

P4 Robot

Event driven Perforce module for Node JS

Installation

npm install --save p4-robot

Usage

var Robot = require('p4-robot')
  , p4 = new Robot();

p4.$after('login', function() {
  p4.add('file.js');
  if (p4.opened('file.js')) {
    console.log('Added File to Perforce');
  }
});
//logs Added File to Perforce

p4.login('mySecretPassword');

Available methods:

  • add
  • chmod
  • client
  • edit
  • editOrAdd
  • exec
  • exists
  • lock
  • login
  • logout
  • opened
  • reopen
  • revert
  • submit
  • sync
  • test
  • unlock

Current Tags

  • 1.0.4                                ...           latest (5 years ago)

5 Versions

  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |