REST Client for Atlassian Stash

AStash for Node

Provides an (incomplete) node library for communicating with Atlassian Stash.

BranchBuild StatusCoffee Docs
developCoffee Docs
masterCoffee Docs

This library provides little over the direct Stash REST API, however the little it provides makes your life so much easier.

The two primary features are:

  • Q promsies for code legibility
  • Automatic handling of paged requests for iterator/generator style access
# Look at all open pull requests for MYPROJ/myrepo 
promise = stash.eachPullRequest "MYPROJ""myrepo"(pr) ->
  pr.canMerge().done () ->
promise.done(-> console.log('Finished processing requests'))