npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@elisra-devops/docgen-data-provider

v1.71.0

Published

A document generator data provider, aimed to retrive data from azure devops

Readme

@elisra-devops/docgen-data-provider

npm license: MIT

Azure DevOps data provider used by DocGen to fetch work items, Git, Pipelines and Test data via the Azure DevOps REST APIs.

Installation

npm i @elisra-devops/docgen-data-provider

Authentication

Pass a token string to the constructor:

  • Azure DevOps PAT (most common): pass the PAT as-is.
  • Bearer token (e.g. AAD/OIDC): pass as bearer:<token> or bearer <token> to send Authorization: Bearer ….

orgUrl should be your organization base URL, typically https://dev.azure.com/<org>/ (note the trailing slash).

Usage

import DgDataProviderAzureDevOps from '@elisra-devops/docgen-data-provider';

const orgUrl = 'https://dev.azure.com/<org>/';
const token = process.env.AZDO_TOKEN!; // PAT, or: `bearer:<access-token>`

const provider = new DgDataProviderAzureDevOps(orgUrl, token, undefined, process.env.JFROG_TOKEN);

const mgmt = await provider.getMangementDataProvider();
const projects = await mgmt.GetProjects();

const tickets = await provider.getTicketsDataProvider();
const workItem = await tickets.GetWorkItem('<project>', '123');

Modules

The default export is DgDataProviderAzureDevOps, which creates module-specific providers:

  • getMangementDataProvider() – org/project helpers (projects, profile, connection data).
  • getTicketsDataProvider() – work items + WIQL queries + attachments/images + shared-query helpers.
  • getGitDataProvider() – repos/branches/tags/files/commits/PRs + linked work items in ranges.
  • getPipelinesDataProvider() – pipeline runs, artifacts, releases, “previous run” lookup, trigger builds.
  • getTestDataProvider() – test plans/suites/cases/points/runs + parses test steps (including shared steps).
  • getResultDataProvider() – test result summaries (group/summary/detailed) and “test reporter” output.
  • getJfrogDataProvider() – JFrog build URL lookup (requires jfrogToken in the constructor).

Notable APIs (by module)

  • MangementDataProvider: GetProjects(), GetProjectByName(), CheckOrgUrlValidity()
  • TicketsDataProvider: GetWorkItem(), GetQueryResultsFromWiql(), GetSharedQueries(), CreateNewWorkItem(), UpdateWorkItem()
  • GitDataProvider: GetTeamProjectGitReposList(), GetFileFromGitRepo(), GetCommitsInCommitRange(), CreatePullRequestComment()
  • PipelinesDataProvider: GetPipelineRunHistory(), getPipelineRunDetails(), GetArtifactByBuildId(), TriggerBuildById()
  • TestDataProvider: GetTestPlans(), GetTestSuitesByPlan(), GetTestCasesBySuites(), CreateTestRun(), UploadTestAttachment()
  • ResultDataProvider: getCombinedResultsSummary(), getTestReporterResults()

Notes

  • This library uses axios and retries some transient failures (timeouts/429/5xx).
  • TicketsDataProvider.GetSharedQueries() supports doc-type specific query layouts (e.g. std, str, svd, srs, test-reporter) and falls back to the provided root path when a dedicated folder is missing.
  • In Node.js, the HTTP client is configured with rejectUnauthorized: false in src/helpers/tfs.ts, which may be required for some internal setups but is a security tradeoff.