node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


REST Client for Atlassian's Stash repository


REST Client for Atlassian's Stash

This is still in progress and so the API should be considered unstabled, but it's in a good enough shape to start playing with.

var StashApi = require("atlas-stash").StashApi;

var user = "username",
    password = "password",
    stash = new StashApi("https", "", null, user, password);

var projects = stash.projects();
projects.on("error", function (error){
}).on("allPages", function(allPages) {
    console.log("All Pages", allPages);

stash.repos("PEPPER").on("allPages", function(repos) {
    console.log("Repos: ", repos);