npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bingpaper

v1.0.2

Published

tool for dowmload bing wallpaper

Downloads

11

Readme

bingpaper

Package of utils to get bing daily wallpaper and set it as wallpaper to your PC.

install from npm

$ npm install --save bingpaper

how to use

//only for CommonJS
//create test.js 
const bingUtils = require('bingpaper');
bingUtils.setWallpaper();

//in terminal
node test

and you will find your wallpaper on desktop changed to lastest bing wallpaper.

the picture is stored in C:\Users\Administrator\Pictures in default

useful utils

here, I offer some useful utils for you.

  1. get information about bing wallpaper, including urls of these pictures bingUtils.featchPicInfo(options, callback)

| parameters | type | required | default | others | | -------------- | -------- | -------- | ------- | ------------------------------------------------------------ | | options | Object | No | {} | for options parameters | | options.n | Number | No | 1 | maximum is 7,download numbers of pictures | | options.format | String | No | 'js' | request format, don't change | | options.ids | number | No | 0 | I don't know, don't change | | callback | Function | Yes | | default contains image info, type of this parameter is Array |

  1. get picture urls bingUtils.featchPicURLs(options, callback)

| parameters | type | required | default | others | | -------------- | -------- | -------- | ------- | ------------------------------------------------------- | | options | Object | No | {} | for options parameters | | options.n | Number | No | 1 | maximum is 7,download numbers of pictures | | options.format | String | No | 'js' | request format, don't change | | options.ids | number | No | 0 | I don't know, don't change | | callback | Function | Yes | | default contains urls, type of this parameter is Object |

  1. download these pictures bingUtils.downloadPic(url, options, callback)

| parameters | type | required | default | others | | ------------ | -------- | -------- | ------------------------------- | ------------------------------------- | | url | String | Yes | | a url to download a picture | | options | Object | No | {} | for options parameters | | options.name | String | No | date of this day | give a name for your picture | | options.path | String | No | C:\Users\Administrator\Pictures | where you save your picture | | callback | Function | Yes | | when you finish download your picture |

  1. straightly set your desktop wallpaper as today's bing wallpaper bingUtils.setWallpaper()

Tip 1: I failed to wabpack this project. anybody can help me?

Tip 2: If you have no idea what I just said, go and see test of this project

Tip 3: You can run Set.bat to set your desktop wallpaper