Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
cimpress-translations
Advanced tools
cimpress-translations is a convenient client for Cimpress' Translations service.
Features:
Include cimpress-translations in your project using npm or yarn:
npm install --save cimpress-translations
Require the module with:
const { TranslationsClient } = require("cimpress-translations");
Instantiates a new client. Pass null for url to use the default service URL. auth may be a string or a synchronous/asynchronous function returning a string.
Lists all services for which you can access translations.
let services = await client.listServices();
console.log(services);
/**
* {
* "services": [
* {
* "serviceId": "28b1f0d2-9366-40cb-95bd-14de8c3adb9b"
* "name": ...
*
Returns details about a service.
let services = await client.describeService("28b1f0d2-9366-40cb-95bd-14de8c3adb9b");
console.log(service);
/**
* {
* "serviceId": "28b1f0d2-9366-40cb-95bd-14de8c3adb9b"
* "name": "My Cimpress Service",
* "configuration": ...
*
Retrieves the translation for a service in a given language. The language may be specified using ISO-639-2 ('eng', 'fra') or selected using its English name ('English', 'French').
let services = await client.getLanguageBlob("28b1f0d2-9366-40cb-95bd-14de8c3adb9b", "French");
console.log(service);
/**
* {
* "blobId": "8a27db52-3245-4466-be94-5e9f39283a3b",
* "data": ...
*
Identify errors by checking their name property.
An unspecified error has occured.
You are not authenticated or authorized to read this information.
The service was not found of does not support this language.
The requested language was not found amongst languages specified in ISO-639-2.
Have you benefited from this library? Have you found or fixed a bug? Would you like to see a new feature implemented? We are eager to collaborate with you on GitHub.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 license - see the LICENSE file for details.
FAQs
Lightweight client for the Translations Service
We found that cimpress-translations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.