1.0.9 • Published 3 years ago

bonjour-madame v1.0.9

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

bonjours madame

Bonjour madame client.

Build Status

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'
import * as moment from 'moment'
const client = new BonjourMadameClient()

// Get today image with html source
await client.get(true)

// Get today image without html source
await client.get(false)

// Get image at date
await client.getAtDate(moment().subtract(1,'day').toDate())

JavaScript

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

// Get today image with html source
await client.get(true)

// Get today image without html source
await client.get(false)

// Get image at date
await client.getAtDate(moment().subtract(1,'day').toDate())

Response

{
  title: '',
  imgUrl: '',
  pageUrl: '',
  pageSource? : ''
}

Examples

See ./src/example/index.ts or ./src/example/index.js
1.0.9

3 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago