Skip to content

spearhead-ea/node-perforce

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-perforce

A simple library for perforce

Install

npm install node-perforce --save

Example

var p4 = require('node-perforce');

// create new changelist
p4.change({change:'new', description: 'hello world'}, function(err, changelist) {
  if (err) return console.log(err);
  console.log('changelist:', changelist);
});

// delete changelist 1234
p4.change({delete: 1234}, function(err) {
  if (err) return console.log(err);
});

// add files into CL@1234
p4.add({changelist: 1234, filetype: 'binary', files: ['*.bin']}, function(err) {
  if (err) return console.log(err);
});

// revert files
p4.revert({files: ['*.bin']}, function(err) {
  if (err) return console.log(err);
});

// edit files
p4.edit({files: ['*.js']}, function(err) {
  if (err) return console.log(err);
});

About

A simple library for perforce

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published