Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wikipics-api

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

wikipics-api

A simple API to obtain Wikipedia Picture of the Day!

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

wikipics-api Build Status

A simple API to obtain Wikipedia Picture of the Day

Install

$ npm install --save wikipics-api

Usage

'use strict'

const wikipics = require('wikipics-api');

wikipics().then(data => {
  console.log(data);
  /*
  {
    image: 'https://upload.wikimedia.org/.../20px-Padlock-pink.svg.png',
    name: '20px-Padlock-pink.svg.png',
    data: 'Centaurea jacea\nPhotograph: Uoaei1\nArchive – More featured pictures...'
  }
  */
});

wikipics('2014-10-10').then(data => {
  console.log(data);
  /*
  {
    image: 'https://upload.wikimedia.....450px-Soursop%2C_Annona_muricata.jpg',
    name: '450px-Soursop%2C_Annona_muricata.jpg',
    data: 'The soursop is the fruit of ...with sour citrus flavour...'
  }
  */
});

API

wikipics()
  • Return promise for current picture of the day
wikipics('date')
  • Returns promise for picture of the day of specific date

date

TYPE : string

FORMAT : yyyy-mm-dd

  • wikipics : Download Wikipedia Picture of the Day and more!

License

MIT © Rishi Giri

Keywords

FAQs

Package last updated on 31 Jul 2017

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