A CLI for setting your GitHub user status
You'll need to set a GitHub personal access token to GITHUB_TOKEN
, with the user
scope if you want to change your own status. You can also use the -t=<token>
flag.
$ npx github-user-status
With a GitHub personal access token:
$ npx github-user-status -t <token>
$ npx github-user-status -u <user>
$ npx github-user-status -m <message> -e [emoji]
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
)