Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @justinbeckwith/sloth with all npm packages installed. Try it out:

var sloth = require("@justinbeckwith/sloth")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@justinbeckwith/sloth v4.16.1

sloth is a CLI utility for measuring GitHub response SLOs.

sloth

This is a simple utility for tracking SLOs of GitHub repositories.

sloth

Installation

Make sure you have node.js 8+ installed. Then do this:

$ npm install -g @justinbeckwith/sloth

Usage

You need to go create a personal access token in GitHub. Take this token, and save it as an environment variable named SLOTH_GITHUB_TOKEN.

$ sloth

Alternatively, you can just set it every time before running the tool:

$ SLOTH_GITHUB_TOKEN=****** sloth

CSV

You can also get output in CSV format! Just pass the --csv flag:

$ sloth --csv

Updating labels

Lets use the same labels in all of our repos. First, check out labels.json. Then go ahead and run:

$ sloth labels

Team membership

Lets organize the users in our many teams/orgs. First, check out users.json. Then go ahead and run:

$ sloth users

That's it 🎉 Enjoy!

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free