github-user-status
v0.1.2
Published
<h3 align="center">[WIP] GitHub User Status CLI</h3> <p align="center">A CLI for setting your GitHub user status<p> <p align="center"><a href="https://npmjs.com/package/github-user-status"><img src="https://badgen.net/npm/v/github-user-status" alt="NPM"><
Downloads
11
Readme
Usage
You'll need to set a GitHub personal access token, with the user
scope if you want to change your own status.
Get your own status
$ npx github-user-status
Get the status of a user
$ npx github-user-status -u <user>
Change your status
$ npx github-user-status -m <message> -e [emoji]
Programmatic Usage
const { getUserStatus, changeUserStatus } = require('github-user-status')
// Get your own status
getUserStatus(token)
// Get a user's status
getUserStatus(token, 'JasonEtco')
// Set your status
changeUserStatus(
{
message, // string, required
emoji, // string
expiresAt, // string
limitedAvailability, // boolean
},
token
)