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.
@arifszn/wallpaper-js
Advanced tools
Readme
Get wallpapers on browser/server.
wallpaper.js is a JavaScript package to get bulk wallpapers. Supports both browser and server.
You may be interested in also:
Install via NPM.
npm install @arifszn/wallpaper-js
Or install via Yarn.
yarn add @arifszn/wallpaper-js
You can also try it online.
const { getWallpaper } = require('@arifszn/wallpaper-js');
Or
import { getWallpaper } from '@arifszn/wallpaper-js';
getWallpaper().then((result) => {
console.log(result);
});
getWallpaper({
total: 20,
}).then((result) => {
console.log(result);
});
Property | Type | Description | Default |
---|---|---|---|
total | number | How many wallpapers to get. Max is 20 | 1 |
allowNSFW | boolean | Allow NSFW content in results | true |
[
{
id: 'abcxyz',
title: 'Wallpaper title',
postLink: 'https://redd.it/abcxyz',
image: 'https://i.redd.it/example.jpg',
thumbnail: 'https://a.thumbs.redditmedia.com/example.jpg',
subreddit: 'example',
NSFW: false,
spoiler: false,
createdUtc: 1644549590,
upVotes: 464,
upVoteRatio: 1.0,
},
];
To contribute, see the Contributing guide.
wallpaper.js is licensed under the MIT License.
FAQs
Get wallpapers on browser/server
We found that @arifszn/wallpaper-js 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.