Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@crowdin/crowdin-api-client
Advanced tools
The Crowdin JavaScript client is a lightweight interface to the Crowdin API v2 that works in any JavaScript environment, including web browsers, workers in web browsers, extensions in web browsers or desktop applications, Node.js etc. It provides common services for making API requests.
For more about Crowdin API v2 see Crowdin API v2 documentation.
Azure CI (Linux) | Azure CI (Windows) | Azure CI (MacOS) |
---|---|---|
npm i @crowdin/crowdin-api-client
import crowdin, { Credentials } from 'crowdin-api-client';
// credentials
const credentials: Credentials = {
token: 'testToken',
organization: 'organizationName'
};
// initialization of crowdin client
const { projectsGroupsApi } = new crowdin(credentials);
// get project list
const projects = await projectsGroupsApi.listProjects();
Or specific API instances:
import { Credentials, ProjectsGroups } from 'crowdin-api-client';
// credentials
const credentials: Credentials = {
token: 'testToken',
organization: 'organizationName'
};
// initialization of ProjectsGroups
const projectsGroupsApi = new ProjectsGroups(credentials);
// get project list
const projects = await projectsGroupsApi.listProjects();
import crowdin from 'crowdin-api-client';
// initialization of crowdin client
const { projectsGroupsApi } = new crowdin({
token: 'testToken',
organization: 'organizationName'
});
// get project list
const projects = await projectsGroupsApi.listProjects();
Or specific API instances:
import { ProjectsGroups } from 'crowdin-api-client';
// initialization of ProjectsGroups
const projectsGroupsApi = new ProjectsGroups({
token: 'testToken',
organization: 'organizationName'
});
// get project list
const projects = await projectsGroupsApi.listProjects();
In addition if you use client in non-Node.js environment you might have a troubles with http calls.
This client uses axios which internally uses http
and https
Node modules.
So there is an option to use http client based on Fetch API.
import { ProjectsGroups, HttpClientType } from 'crowdin-api-client';
const projectsGroupsApi = new ProjectsGroups(credentials, {
httpClientType: HttpClientType.FETCH
});
const projects = await projectsGroupsApi.listProjects();
Or even pass your own http client as httpClient
property which should implement HttpClient
interface.
We are happy to accept contributions to the Crowdin JavaScript client. To contribute please do the following:
If you find any problems or would like to suggest a feature, please feel free to file an issue on Github at Issues Page.
If you've found an error in these samples, please contact our Support Team.
Copyright © 2019 Crowdin The Crowdin JavaScript client is licensed under the MIT License. See the LICENSE.md file distributed with this work for additional information regarding copyright ownership.
FAQs
JavaScript library for Crowdin API
The npm package @crowdin/crowdin-api-client receives a total of 33,558 weekly downloads. As such, @crowdin/crowdin-api-client popularity was classified as popular.
We found that @crowdin/crowdin-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.