Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
getyourbit
Advanced tools
Readme
This library allows you to make requests easily.
const GetYourBit = require('getyourbit');
const api = new GetYourBit.Api('https://ip.getyourbit.com');
api.auth('login', 'password').then(() => {
return api.request('/lookup/8.8.8.8/');
})
.then((body) => {
return api.request('/me/', {locale: 'en-US'}).then((body) => {
console.log(body.data);
});
})
.then((res) => {
return api.scroll('/find/', {
size: 500,
query: {
country: 'nepal'
}
}, (body, chunkData, fullData) => {
console.log(chunkData.length);
});
})
.then((fullData) => {
console.log(fullData.length);
return api.logout();
})
.catch((err) => {
console.error(err);
});
Login to the API. You can get login and password on the site after a subscription.
options is request module options.
Free services don't require authorization.
Logout from the API. It gives an error without authorization before.
Request to the API without scrolling to get data.
It returns all response body as object.
Request to the API with scrolling to get data. You can pass callback to control every chunk. You will get three arguments:
It returns the full data at the end
FAQs
Getyourbit.com client
The npm package getyourbit receives a total of 6 weekly downloads. As such, getyourbit popularity was classified as not popular.
We found that getyourbit 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.