Skip to content

loockeeer/vdm-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VDM Wrapper

VDM Wrapper able you to retrieve data from VDM, spicy or classic.

Install

Install it with npm : npm i vdm-wrapper

Or with yarn : yarn add vdm-wrapper

Exemples

const vdm = require('vdm-wrapper')

await vdm.fetchPage(50, true) // Retrieve data from page 50, only spicy

await vdm.fetchPages(50, false) // Retrieve the first 50 pages, spicy and classic

await vdm.fetchAllPages(false) // Retrive all the pages spicy and classic

(async ()=>{
	for await (const page of vdm.fetchAllPagesGenerator()) { // Retrieve all the pages with a generator, spicy and classic
		console.log(page)
	}
})()

Documentation

class Client {
	
	static async fetchPage(page_number, spicy=false) // Data from one page
	static async fetchPages(count, spicy=false) // Data from x pages
	static async fetchAllPages(spicy=false) // Data from all pages
	static async *fetchAllPagesGenerator(spicy=false) // Data from all pages but with a generator
}

About

A wrapper for retrieving infos from VDM (french)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published