0.1.2 • Published 5 years ago

github-user-status v0.1.2

Weekly downloads
17
License
-
Repository
-
Last release
5 years ago

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
)