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

-test-bitbucket-branch-manager

v1.0.1

Published

bitbucket branch manager

Readme

Bitbucket-branch-manager is a CLI written in Nodejs. It help you manager remote branch and pull request by simple command line. This CLI follow Bitbucket API

Feature

  • Create branch
  • Delete branch
  • Reset branch
  • Open pull request
  • Merge pull request

Install

You need install nodejs. Make sure nodejs was installed ( node>= 12)

$ node -v
$ npm -v

Install bitbucket-branch-manager

$ npm install -g bitbucket-branch-manager

Check bitbucket-branch-manager was installed

$ bbm -v

Setup your config

  • Make sure your basic authentication bitbucket is set up

    $ bbm set --basic-auth-username <username> 
    $ bbm set --basic-auth-password <password> 
  • Set default workspace

    $ bbm set --default-workspace <workspace>
  • What is a workspace ? A workspace is where you will create repositories, collaborate on your code, and organize different streams of work in your Bitbucket Cloud account. At this time, you'll be provided with one workspace and one workspace ID.

  • Check config

    $ bbm get

Comamnd line Document

1. Repositories list

  • You can get your repositories list (limit 100 items):
    $ bbm repo
  • Or use alias by the way
    # set index
    $ bbm repo --set-index-alias
    # check it
    $ bbm alias

2. Create branch

  • This command will create new branch from another source branch, please make sure source branch or default source branch is exist
  • Command: bbm new|n <repo|aliasId> <branch> [source]
  • Option
    • -w <workspace> or --workspace <workspace>
  • Set aliasId follow 1. Repositories list or if you've already done it:
    $ bbm alias 
    #or
    $ bbm a
  • Set default source branch:
    # another branch you want, my example is master
    $ bbm set --default-branch-create-from master
  • Examples:
    • Full command:
      $ bbm new test-repo test-branch master
    • Short command:
      # if not set default source branch
      $ bbm n 2 test-branch master
      # default source branch has aldready
      $ bbm n 2 test-branch

3. Delete branch

  • Command: bbm delete|d <repo|aliasId> <branch>
  • Option
    • -w <workspace> or --workspace <workspace>
  • Examples:
    • Full command:
      $ bbm delete test-repo test-branch
    • Short command:
      $ bbm d 2 test-branch

4. Reset branch

  • This command will delete and recreate branch from another source branch, please make sure source or default source branch is exist
  • Command: bbm reset|r <repo|aliasId> [branch] [source]
  • Option
    • -w <workspace> or --workspace <workspace>
  • Set default source branch. Your branch you want reset will recreate from this:
    # another branch you want, my example is master
    $ bbm set --default-branch-reset-from master
  • Set default branch will reset.
    # another branch you want, my example is master
    $ bbm set --default-branch-reset staging 
  • Examples:
    • Full command:
      $ bbm reset test-repo test-branch master
    • Short command:
      # if you not set default branch
      $ bbm r 2 test-branch master
      # if default destination branch has aldready
      $ bbm r 2 test-branch
      # if default destination branch and default branch reset has aldready
      $ bbm r 2 # mean delete staging and recreate from master

5. Open pull request

  • This command will create pull request your into another branch.
  • Command: bbm open|o <repo|aliasId> <branch> [destination]
  • Option
    • -w <workspace> or --workspace <workspace>
    • -t <title> or --title <title> if you want set title or not title default is branch name
    • -m or --merge if you want auto merge
  • Set default destination
    # another branch you want, my example is master
    $ bbm set --default-branch-open-pull master
  • Examples:
    • Full command
      $ bbm open test-repo test-branch master
    • Short command
      # if you not set default branch
      $ bbm o 2 test-branch master
      # if default destination branch has aldready
      $ bbm o 2 test-branch

6. Merge pull request

  • This command will merge your pull request by id
  • Command: bbm merge|m <repo> <pullId>
  • Examples:
    • Full command:
      $ bbm merge test-repo 25
    • Short command:
      $ bbm m test repo 25

End

Thanks for spending your time to visit.