Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crowdin

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crowdin

A Node.js client for the v1 and v2 Crowdin APIs

  • 3.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
187
increased by18.35%
Maintainers
6
Weekly downloads
 
Created
Source

Crowdin API Client

All Contributors

A Node.js client for the v1 and v2 Crowdin APIs

🚧 This is still a work in progress. To see what remains to be implemented, check out the open issues. 🚧

Installation

npm install crowdin

Basic Usage

const crowdin = require('crowdin')({
  key: process.env.CROWDIN_KEY,
  schemaVersion: 'v2'
})

const projects = await crowdin.projects.getMany()

Examples

To try out some examples, clone the repo and install dependencies:

git clone https://github.com/aletrejo/crowdin-wrapper
cd crowdin-wrapper
npm install

Then you can run the examples:

node examples/v1-get-project-details.js
node examples/v2-add-files.js

API

This module exports a single factory function that returns a Crowdin client:

createClient([options])

  • options Object
    • key String - Your Crowdin API key. Required.
    • schemaVersion String (optional) - Çan be v1 or v2. Defaults to v2.
    • hostname String (optional) - Defaults to api.crowdin.com

The returned client is an object of deeply nested API operations like crowdin.projects.files.getMany and crowdin.projects.branches.languages.progress.getMany. Each of these operations returns a Promise to a got response object.

See docs/v1.md and docs/v2.md for reference.

Thanks

Special thanks to :sparkles:Paul Le Cam:sparkles: for donating the crowdin npm package name.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Alejandra Trejo

💻 📖 ⚠️ 👀

Zeke Sikelianos

📖 🎨 🤔 💻

TomPradat

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

FAQs

Package last updated on 19 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc