Socket
Socket
Sign inDemoInstall

teamcity-ts

Package Overview
Dependencies
24
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    teamcity-ts

[![Latest Release](https://img.shields.io/github/v/release/mattwilkinsonn/teamcity-ts?color=success&include_prereleases)](https://github.com/mattwilkinsonn/teamcity-ts/releases) [![Build](https://img.shields.io/github/workflow/status/mattwilkinsonn/teamci


Version published
Weekly downloads
7
increased by75%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

TeamCity-TS

Latest Release Build Issues Stars License

NPM | GitHub

TeamCity client for TypeScript (Node.js). Uses got to make requests, and date-fns to transform dates to and from the TeamCity required format.

WIP. Currently only contains GET requests for functionality I needed for a project.

The bones are there to add more functionality though, so feel free to make a PR if you'd like to add something.

Installation

yarn add teamcity-ts

or

npm install teamcity-ts

Usage

Use the TeamCityAPI class to initalize a new API client.

Parameters:

  • host - The hostname of the TeamCity server, without a http:// or https:// prefix. Required
  • token - An Access Token from the TeamCity server. Make sure it has the permissions you need. Required
  • version - The version of the TeamCity API to use. Don't set this unless you know what you are doing. Defaults to latest, optional.

Example:

const teamCityAPI = new TeamCityAPI({host: "myteamcityserver.com", token: "mysecrettoken"})

const builds = teamCityAPI.GetBuilds({locator: {project: "myteamcityproject"}, paginate: false})

See the methods available on TeamCityAPI for different requests, or look at the source

Keywords

FAQs

Last updated on 25 Jan 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc