Naturally Processed Meals

    marktguru
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.6 • Public • Published

    Unofficial Marktguru library

    A library to search for offers on marktguru.de.

    Usage

    import { search } from 'marktguru';
    
    const doSearch = async () => {
        try {
            const query = 'Cola';
            const offers = await search(query, { limit: 10 });
        } catch (error) {
            // error is an axios error, see https://axios-http.com/docs/handling_errors for more infos
            console.error(error);
        }
    }

    SearchOptions

    Key Description Default
    limit Set the limit of offers to receive 1000
    offset Skip as many offers as offset is set 0
    allowedRetailers An array of retailers. See here on line 2 for some retailers []
    zipCode The zip code of area/city where to search for offers 60487

    Offer

    How an Offer object looks like, you can see here on line 77

    Tests

    $ npm run test

    Keywords

    none

    Install

    npm i marktguru

    DownloadsWeekly Downloads

    7

    Version

    0.0.6

    License

    ISC

    Unpacked Size

    26.4 kB

    Total Files

    12

    Last publish

    Collaborators

    • sydev