New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@arifszn/wallpaper-js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arifszn/wallpaper-js

Get wallpapers on browser/server

  • 1.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

wallpaper.js

Get wallpapers on browser/server.

Description

wallpaper.js is a JavaScript package to get bulk wallpapers. Supports both browser and server.

You may be interested in also:

Installation

Install via NPM.

npm install @arifszn/wallpaper-js

Or install via Yarn.

yarn add @arifszn/wallpaper-js

You can also try it online.

Usage

Import

const { getWallpaper } = require('@arifszn/wallpaper-js');

Or

import { getWallpaper } from '@arifszn/wallpaper-js';

Get 1 wallpaper

getWallpaper().then((result) => {
  console.log(result);
});

Get 20 wallpapers

getWallpaper({
  total: 20,
}).then((result) => {
  console.log(result);
});

Options

PropertyTypeDescriptionDefault
totalnumberHow many wallpapers to get. Max is 201
allowNSFWbooleanAllow NSFW content in resultstrue

Sample Response

[
  {
    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,
  },
];

Contribute

To contribute, see the Contributing guide.

Support

Buy Me A Coffee

License

wallpaper.js is licensed under the MIT License.

Keywords

FAQs

Package last updated on 01 Jun 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc