
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.
Fotology is a simple way to get the urls of images via Google Image Search.
The api is very simple:
fotology(searchTerm, [options], callback);
To find pictures of cats:
var fotology = require("fotology");
fotology("cats", function (imageURLs) {
for (i in imageURLs)
console.log imageURLs[i];
});
To modify behaviour, pass in an options object between the search term and callback. For example:
let options = {
size: "large", // large images only
language: "fr", // French
safe: true, // force safe search on
color: "white" // white cats only please
}
fotology("cats", options, callback);
| Option | Description | Example value |
|---|---|---|
| safe | Safe search | true |
| size | Image seize | "large" |
| language | Language | "fr" |
| color | Image color | "white" |
safeBy default, fotology uses moderate safe search, which is what you get on Google Images by default. It will mostly use safe search unless it thinks you do not want it.
To force safe search to be on all the time, set it as true.
safe: true
To disable it, set it as false.
You cannot set safe search to moderate because it is a boolean type. The only way to use moderate safe search is by not passing it as an option, which fotology interprets as wanting moderate safe search.
sizeThere are 4 possible sizes:
For example:
size: "small"
By default, the size is not monitored for, so any size can be used.
languageThis modifies the language to use when making the search. By default, it uses English.
To modify the language, please pass it in like such:
language: "fr"
for French and
language: "de"
for German.
colorBy default, the images can be of any colour.
To get images of a specific colour only, please pick from and ONE OF THESE ONLY:
Using a colour not in here will cause Google's servers to ignore you.
FAQs
Simplifies Image Searching
We found that fotology 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.