‚̧Neanderthal Pudding Mix
    Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    @octopod-service/web-getter
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.5¬†‚Äʬ†Public¬†‚Äʬ†Published

    web-getter for octopod

    npm Version

    Allow to download with a limited frequency a web page. It will queue a request to the service (one queue per hostname) and execute it when the timeout has been reached.

    Install

    npm install @octopod-service/web-getter

    Usage

    // TypeScript
    import * as getter from '@octopod-service/web-getter'
    // JavaScript
    const getter = require('@octopod-service/web-getter');
     
    const service = new getter.GetterService('http://...');
    service.start();

    Call

    this.call<GetterServiceResult, GetterServiceRequest>('getter', 'request', {
        url: 'http://...'
    }, (response, paths, cleanup) => {
        console.log(response.filePath);
     
        cleanup();
    });
    this.call<GetterServiceDirectResult, GetterServiceRequest>('getter', 'direct', {
        url: 'http://...'
    }, (response, paths, cleanup) => {
        console.log(response.body);
     
        cleanup();
    });

    Keywords

    none

    Install

    npm i @octopod-service/web-getter

    DownloadsWeekly Downloads

    0

    Version

    1.0.5

    License

    Unlicense

    Last publish

    Collaborators

    • avatar