How to use the megalodon.default function in megalodon

To help you get started, we’ve selected a few megalodon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozillach / gh-projects-content-queue / lib / accounts / mastodon.js View on Github external
constructor(config, client) {
        super({
            toots: getToots
        });

        this._client = client ? client : new Mastodon(config.accessToken, config.url);
        this._config = config;

        this.ready = this.checkLogin().catch((e) => {
            console.error("MastodonAccount checkLogin", e);
            throw e;
        });
    }

megalodon

Fediverse API client for node.js and browser

MIT
Latest version published 1 month ago

Package Health Score

69 / 100
Full package analysis