A CLI module for downloading memes as images to a specific directory
memeinstall [-c <count>] --directory=<folder name>
The module can be install via npm
npm i -g @therealraluvy/memeinstall
If you want to use this for script-only, you can remove the option -g
. You can check it out in Script tag
npm i @therealraluvy/memeinstall
-c <count>
| Count of memes to download. The default is 10 and the max almont of memes is 50
--no-gif=<boolean>
| Refuse to download GIF meme. Default is false.
--directory=<folder name>
| Which folder do you want to download. The default is the current directory.
--debug
| Enable debug mode. Default is false
Without options will install memes in current directory
memeinstall
This will install 10 memes to a folder called memes
memeinstall --directory=memes
This will install 50 memes to a folder called memes
memeinstall -c 50 --directory=memes
Script support is added in v1.3.0
. It is similar to CLI, works on Node.js. TypeScript is not supported, but hopefuly will support later
Here's quick example
const memeinstall = require("@therealraluvy/memeinstall")
memeinstall.install()
Advanced example
memeinstall.install("memes", 50, true)
.then(() => {
console.log("Finished downloading!")
})
.catch(err => console.error(err))
It's possible to get a meme without downloading using getMeme
memeinstall.getMeme(25)
.then(json => console.log(json))
Node.js >= 10.0.0
Have at least 15 or more MB disk stoarge for 50 memes
Fixed --no-gif
ignoring the check if the file is added
Added Script category
Added an optional --no-gif
. Useful when you want to get memes without GIF.
Published to NPM. Nothing changes