Get and display API token for GitHub Apps.
npx gh-app-token --appId <your_app_id> --installationId <installation_id> --pem <path_to_pem_file>
or
npm -g install gh-app-token
gh-app-token --appId <your_app_id> --installationId <installation_id> --pem <path_to_pem_file>
const { auth } = require("gh-app-token");
auth(appId, installationId, pemFilePath).then(token => {
// use token
});
MIT. See LICENSE under this repository.