A Node.js REST client for Atlassian Bitbucket Server (formerly Stash). Current stable version is 2.3.0. The library provides programmatic access to Bitbucket Server's REST API, including operations on projects, repositories, pull requests, and users. It uses Promises for asynchronous requests and is designed for Node.js environments. Key differentiators: it is a dedicated client library specifically for Bitbucket Server, not for Bitbucket Cloud, and it abstracts authentication and request handling.
npm install bitbucket-srv-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a BitbucketClient instance with basic auth and lists all projects.
Update your code to use async/await or .then() instead of callbacks.
Replace 'password' with 'token' for personal access tokens or use 'basicAuth' object with username and password.
Always include 'https://' in baseUrl when connecting to Bitbucket Server.
When paginating, use client.projects.list({ limit: 25, start: 0 }) instead of page/size.Update to v2.3.0 and ensure correct import: import { BitbucketClient } from 'bitbucket-srv-rest';Check baseUrl includes 'https://' and correct host:port.
Verify credentials and ensure using correct authentication method (basicAuth or token).