Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
anime-wallpaper
Advanced tools
Get Anime wallpapers based on scrapping from websites.
npm install anime-wallpaper
or
yarn add anime-wallpaper
At the head of your file, start by importing the necessary classes
const { AnimeWallpaper, AnimeSource } = require('anime-wallpaper');
const wallpaper = new AnimeWallpaper();
const wallpaper = await wallpaper.random();
return console.log(wallpaper)
const wallpaper = await wall.search({ title: "firefly honkai", page: 1, type: "sfw", aiArt: true }, AnimeSource.WallHaven);
return console.log(wallpaper)
const wallpaper = await wallpaper.search({ title: "Keqing" }, AnimeSource.Wallpapers);
return console.log(wallpaper)
const wallpaper = await wallpaper.search({ title: "Misaka Mikoto" }, AnimeSource.ZeroChan);
return console.log(wallpaper)
const wallpaper = await wall.Hoyolab({ game: "GenshinImpact", postType: "Trending" });
return console.log(wallpaper)
{
data: {
list: [
{
game: {...},
post: {...},
topics: [{...}]
user: {...}
}
]
}
}
In some rare cases, the fetching process might fail due to inconsistencies when scraping websites.
Fork then clone the project and install its dependencies:
npm i
In the root folder of the project type the following to compile the .ts into .js
tsc
© Aizuu
FAQs
Get Anime wallpapers based on scrapping from websites.
The npm package anime-wallpaper receives a total of 9,385 weekly downloads. As such, anime-wallpaper popularity was classified as popular.
We found that anime-wallpaper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.