JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q68137F
  • License MIT

bonjour madame client

Package Exports

  • bonjour-madame

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bonjour-madame) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

bonjours madame

Bonjour madame client.

Goal

Get data in json format from bonjour madame website.

Install

yarn add bonjour-madame

or

npm i bonjour-madame --save

How to use

TypeScript

import {BonjourMadameClient} from 'bonjour-madame'
const client = new BonjourMadameClient()

// Get today image
await client.get(true)

// Get random image
await client.get(false)

JavaScript

const BM = require('bonjour-madame')
const client = new BM.BonjourMadameClient()

// Get today image
await client.get(true)

// Get random image
await client.get(false)

Response

{ 
  title: '',
  today: true,
  imgUrl: '',
  pageUrl: ''
}

Examples

See ./src/tests/index.ts or ./dist/tests/index.js