
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ghify-request
Advanced tools
Create a Request wrapper to interact with the GitHub API
const ghifyRequest = require('ghify-request');
const request = require('request');
const ghifiedRequest = ghifyRequest(request);
ghifiedRequest('users/shinnn', (err, response, body) => {
body.login; //=> 'shinnn'
})
npm install ghify-request
const ghifyRequest = require('ghify-request');
request: Function (Request function)
options: Object (Request options)
Return: Function (new Request wrapper)
It returns a Request wrapper that defaults to the options for easily interacting with the GitHub API.
Type: String
Default: process.env.GITHUB_TOKEN
Use specific GitHub access token.
const ghifyRequest = require('ghify-request');
const request = require('request');
// https://developer.github.com/v3/gists/#star-a-gist
ghifyRequest(request, {
token: 'xxxxxxx' // your personal access token
}).put({
uri: '/gists/908bced575270f6ef80e/star'
}).on('response', () => {
console.log('Starred the gist https://gist.github.com/shinnn/908bced575270f6ef80e.');
});
Type: String
Default: process.env.GITHUB_ENDPOINT if available, otherwise 'https://api.github.com'
Use the different endpoint to support Github enterprise.
Copyright (c) 2015 - 2016 Shinnosuke Watanabe
Licensed under the MIT License.
FAQs
Create a Request wrapper to interact with the GitHub API
We found that ghify-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.