Socket
Socket
Sign inDemoInstall

node-okbitbucket

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-okbitbucket

Wrapper for the BitBucket API


Version published
Weekly downloads
3
decreased by-72.73%
Maintainers
1
Install size
347 kB
Created
Weekly downloads
 

Readme

Source

node-okbitbucket

Mac/LinuxWindows
Build Status
Windows Build status

API to programmatically query / write on bitbucket.

Pure NodeJS implementation.

Install

    npm i node-okbitbucket --save

Usage


    var secrets = {
        username:'',
        password:'',
        oauth = {
            clientId: '',
            secret: ''
        }
    };

    // var secrets = require('./secrets.json');
    
    // enable debug messages
    if ( process.env.NODE_ENV === 'test' ){
      process.env.DEBUG='*';
    }
    
    var BitBucket = require('node-okbitbucket');
    
    var bbt = (new BitBucket())
            .authenticatePassword(secrets.username, secrets.password);

    bbt.getUserApi().getRepositories(username, function(err, repos){  });
    
    bbt.getUsersApi().getUserData(username, function(err, user){  });
    
    bbt.getSshApi().getKeys(function(err, keys){  });
    bbt.getSshApi().addKey(pubkey, function(err){  });
    bbt.getSshApi().deleteKey(pubkey, function(err){  });
    bbt.getSshApi().deleteAllKeys(function(){  });
    
    bbt.getRepoApi().show(username, repo, function(err, userRepo){  })
    bbt.getRepoApi().getUserRepos(username, function(err, repositories){  })
    
    
    bbt.getEmailApi().getAll(username, repo, function(err, userRepo){  })
    

Documentation

Test

npm run test
DEBUG=node-okbitbucket mocha

Todo

  • write documentation
  • write missing tests (see tests files directly)
  • re write example
  • fix lint

About this repo

It s a fork or original repo found on github, itself a fork of a bitbucket repo.

I only want to note about the license, i see there is one, i m not interested into this, not at all.

I just need this to work, the rest is pointless.

FAQs

Last updated on 02 May 2015

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