
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
@sleavely/bitbucket
Advanced tools
API client and collection of common utility methods for managing Bitbucket Cloud via their REST API.
npm install @sleavely/bitbucket
import { BitbucketClient } from '@sleavely/bitbucket'
const bitbucket = new BitbucketClient({
auth: {
username: 'foobar',
password: 'secret', // Create an app password: https://bitbucket.org/account/settings/app-passwords/
},
})
console.log(await bitbucket.getCurrentUser())
The initial types were handcrafted according to the Bitbucket Cloud REST API reference which in turn are likely autogenerated from their OpenAPI schema. Unfortunately their schema in many cases differs from reality, so discrepancies will occur from time to time. Let me know in an issue (or pull request) and I'll do my best to amend it.
I've only added utility methods for things I've personally needed in the past, but I'd be happy to add more. In the meantime the public client
property acts as an escape hatch to the got
instance:
// List branches and tags without the need for helper utils.
await bitbucket.client('/repositories/{workspace}/{repo_slug}/refs')
.json<unknown>()
// or simply `.json()`
FAQs
Client and utils for Bitbucket Cloud REST APIs
The npm package @sleavely/bitbucket receives a total of 0 weekly downloads. As such, @sleavely/bitbucket popularity was classified as not popular.
We found that @sleavely/bitbucket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.