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

@atlassian/bitbucket-server

Package Overview
Dependencies
Maintainers
19
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlassian/bitbucket-server

Bitbucket Server API client for Browser and Node.js

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
19
Created
Source

bitbucket-server.js

Bitbucket Server API client for Browser and Node.js

This is a port of the excellent bitbucket library by Munif Tanjim: https://github.com/MunifTanjim/node-bitbucket

Bitbucket Server API docs: https://docs.atlassian.com/bitbucket-server/rest/latest/bitbucket-rest.html

Installation

via npm:

$ npm install @atlassian/bitbucket-server --save

via yarn:

$ yarn add @atlassian/bitbucket-server

Usage

Node

const BitbucketServer = require('@atlassian/bitbucket-server')

const BitbucketServer = new BitbucketServer()
Client Options

You can set the APIs' baseUrl and modify some behaviors (e.g. request timeout etc.) by passing a clientOptions object to the BitbucketServer constructor.

const clientOptions = {
  baseUrl: 'https://<server base url>',
  headers: {},
  options: {
    timeout: 10
  }
}

const client = new BitbucketServer(clientOptions)

This enables you to use the client with Bitbucket Server.

Authentication

Basic

client.authenticate({
  type: 'basic',
  username: 'username',
  password: 'password'
})

OAuth

client.authenticate({
  type: 'token',
  token: 'access token'
})

Keywords

FAQs

Package last updated on 10 Jul 2019

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