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 🙏

© 2024 – Pkg Stats / Ryan Hefner

codebase

v1.2.0

Published

Node.js Codebase CLI/API wrapper

Downloads

105

Readme

Codebase CLI

Quickly check the status of the ticket you're working on on codebase.

Installation

npm install -g codebase

**Note: Node 4.0.0+ required **

Usage

As per codebase --help:

Usage: codebase [options]

Options:
  -p, --project  Codebase project identifier.
                 If not specified it defaults to
                 what's inside $PWD/.codebase-project                   [string]
  -t, --ticket   Codebase ticket identifier.
                 If not specified it tries to guess
                 it based on your current branch name                   [string]
  -c, --count    Number of ticket updates to retrieve, -1 for no limits
                                                        [string] [default: "-1"]
  --no-colors    Prevents output colour                                [boolean]
  -h, --help     Show help                                             [boolean]

Examples:
  codebase --project api --ticket 123

At first run codebase will prompt for your API credential and store them in a $HOME/.codebase_credentials json file. When prompt, insert your API unsername including you organization (e.g. microsoft/bill-gates) and your access token (something like 234bd452961b34490db83abcd12345672cf00198c16).

You can find these information in your "profile" page on codebase (https://<your-company>.codebasehq.com/settings/profile)

Project and ticket guessing

You can pass an optional --project and --ticket params to codebase and it will output a summary of that ticket.

If you don't, codebase will look for a .codebase-project file containing the project name in your current working directory and use that.

Also, if you don't specify a ticket number, codebase will try to guess it based on the current branch name (which should start with the ticket number).

e.g. if your current branch is called 123-awesome-feature, codebase will assume you're interested in ticket number 123.

If guessing can't be performed, or you're missing any of the required param, codebase will very kindly ask you to provide some.

Development

This CLI tool can also be used as a node.js library. My plan is to use it to build an Atom plugin with it, but that's not yet available. API are likely to change frequently, so until v1.0 is hit, if you want to use this lib, do so at your own risk (and lock the version with "=0.x.y" in your package.json).

Issues and PR are most welcome.

MIT (c) Alessandro Artoni