Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-devops-node-api

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-devops-node-api

Node client for Azure DevOps and TFS REST APIs

  • 14.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
437K
decreased by-15.21%
Maintainers
6
Weekly downloads
 
Created

What is azure-devops-node-api?

The azure-devops-node-api package is a Node.js library that provides an interface to interact with Azure DevOps services. It allows developers to automate and manage various aspects of Azure DevOps, such as work items, builds, releases, and more.

What are azure-devops-node-api's main functionalities?

Work Item Tracking

This feature allows you to interact with work items in Azure DevOps. The code sample demonstrates how to retrieve work items by their IDs.

const azdev = require('azure-devops-node-api');
const orgUrl = 'https://dev.azure.com/yourorganization';
const token = 'yourPAT';
const authHandler = azdev.getPersonalAccessTokenHandler(token);
const connection = new azdev.WebApi(orgUrl, authHandler);

async function getWorkItems() {
  const witApi = await connection.getWorkItemTrackingApi();
  const workItems = await witApi.getWorkItems([1, 2, 3]);
  console.log(workItems);
}

getWorkItems();

Build Management

This feature allows you to manage builds in Azure DevOps. The code sample demonstrates how to retrieve a list of builds for a specific project.

const azdev = require('azure-devops-node-api');
const orgUrl = 'https://dev.azure.com/yourorganization';
const token = 'yourPAT';
const authHandler = azdev.getPersonalAccessTokenHandler(token);
const connection = new azdev.WebApi(orgUrl, authHandler);

async function getBuilds() {
  const buildApi = await connection.getBuildApi();
  const builds = await buildApi.getBuilds('yourProject');
  console.log(builds);
}

getBuilds();

Release Management

This feature allows you to manage releases in Azure DevOps. The code sample demonstrates how to retrieve a list of releases for a specific project.

const azdev = require('azure-devops-node-api');
const orgUrl = 'https://dev.azure.com/yourorganization';
const token = 'yourPAT';
const authHandler = azdev.getPersonalAccessTokenHandler(token);
const connection = new azdev.WebApi(orgUrl, authHandler);

async function getReleases() {
  const releaseApi = await connection.getReleaseApi();
  const releases = await releaseApi.getReleases('yourProject');
  console.log(releases);
}

getReleases();

Other packages similar to azure-devops-node-api

FAQs

Package last updated on 27 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc