![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
image-grabberjs
Advanced tools
Image grabber is a module that pulls images from reddit.
Developed by Gautam Paranjape
Images are actually fetched from an API I made, and this is the package that covers it. https://jupitr-apis.glitch.me/
npm install image-grabber
Example
const grabber = require("image-grabber");
const subreddit = "catpictures";
async function getImages() {
let fetchedImage = await grabber(subreddit);
console.log(fetchedImage);
}
One thing to note, the function must be asynchronous.
This package is used a lot for discord bots, as people want to make image commands. Thus, here is an example to help people, using the library discord.js
const grabber = require("image-grabber");
let subreddit = "dogpictures";
let image = await grabber(subreddit);
const embed = new MessageEmbed();
embed.setTitle("Dog!");
embed.setImage(image);
embed.setColor("RANDOM");
message.channel.send(embed);
The possibilities are endless, you can use this to grab images from any subreddit you want!
You can use JavaScript to use this package in a whole different way!
Contributions are absolutely welcome!
Please visit the GitHub repo, fork it, add your changes, and then make a pull request, and I will review it.
Thank you so much, and hopefully you found this package helpful!
FAQs
**Image-Grabber-JS is a module that pulls images from reddit.**
The npm package image-grabberjs receives a total of 0 weekly downloads. As such, image-grabberjs popularity was classified as not popular.
We found that image-grabberjs 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.