$ cnpm install @probot/get-private-key
Get private key from a file path, environment variables, or a
*.pemfile in the current working directory
Finds a private key through various user-(un)specified methods. Order of precedence:
PRIVATE_KEY environment variable or explicit env.PRIVATE_KEY option. The private key can optionally be base64 encoded.PRIVATE_KEY_PATH environment variable or explicit env.PRIVATE_KEY_PATH option.pem extension in current working dir| Browsers |
|
|---|---|
| Node |
Install with
|
const probot = new Probot({
appId: 123,
privateKey: getPrivateKey(),
});
| name | type | description |
|---|---|---|
options.filepath
|
string |
Pass a path to a
|
options.cwd
|
string |
Defaults to
|
options.env
|
object |
Defaults to
|
Copyright 2013 - present © cnpmjs.org | Home |