How to use @crowdin/crowdin-api-client - 1 common examples

To help you get started, we’ve selected a few @crowdin/crowdin-api-client 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 crowdin / sketch-crowdin / src / util / http.js View on Github external
function createClient() {
    const token = settings.settingForKey(ACCESS_TOKEN_KEY);
    const organization = settings.settingForKey(ORGANIZATION);
    if (!token) {
        throw 'Please set access token';
    }
    return new crowdin({ token, organization }, { httpClientType: HttpClientType.FETCH });
}

@crowdin/crowdin-api-client

JavaScript library for Crowdin API

MIT
Latest version published 15 days ago

Package Health Score

90 / 100
Full package analysis

Popular @crowdin/crowdin-api-client functions