win-tfs

1.0.1 • Public • Published

Windows Team Foundation Server(TFS) version control via Node.js

  • No dependencies
  • Easy API
  • Intuitive
  • License: ISC

NPM Stats

Install

npm install win-tfs

Usage

var tfs = require('win-tfs'),
    path = require('path'),
    basePath = path.resolve('C:/User/suprsidr/project/files/'),
    exe = tfs.findVisualStudioPath() + 'tf.exe';
 
var paths = [
  path.join(basePath, 'file.json'),
  path.join(basePath, 'file.js')
];
 
var params = ['/login:tfsusername@domain,PASSWORD', '/comment:Updated from nodejs', '/noprompt'];
 
// get latest
tfs.get(exe, paths, params);
 
// checkout
tfs.checkout(exe, paths, params);
 
// checkin
tfs.checkin(exe, paths, params);
 
// undo checkout
tfs.undo(exe, paths, params);
 

All commands: get, add, delete, undelete, checkout, checkin, undo, rollback, history, workflod

Readme

Keywords

Package Sidebar

Install

npm i win-tfs

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • suprsidr