Gathering detailed insights and metrics for postgres-interval-class
Gathering detailed insights and metrics for postgres-interval-class
Gathering detailed insights and metrics for postgres-interval-class
Gathering detailed insights and metrics for postgres-interval-class
npm install postgres-interval-class
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2 Stars
100 Commits
2 Watching
1 Branches
1 Contributors
Updated on 14 Jun 2020
TypeScript (97.86%)
JavaScript (2.14%)
Cumulative downloads
Total Downloads
Last day
-57.1%
33
Compared to previous day
Last week
-48.6%
306
Compared to previous week
Last month
157%
1,912
Compared to previous month
Last year
97.9%
11,161
Compared to previous year
1
7
Translate any type of data (string, string[], json) into one or more languages.
Yandex.Translate API for Node.js
Sign up for a Yandex API key at https://translate.yandex.com/developers/keys
Install this package in your project:
$ npm install --save yet-another-yandex-translate
Call require to get the instance:
1const { YandexTranslate } = require('yet-another-yandex-translate');
Or in ES6 and TS:
1import YandexTranslate from 'yet-another-yandex-translate';
1const yt = new YandexTranslate('<< YOUR YANDEX API KEY HERE >>');
Translate any type of data (string, string[], json) into one or more languages:
1// Hello world! 2await yt.translate('Привет мир!', {from: 'ru', to: 'en', format: 'html'}); 3 4// [ 'foo', 'bar' ] 5await yt.translate([ 'foo', 'bar' ], {to: 'en', format: 'plain'}); 6 7// [{text: 'Hello world!', lang: 'en'}, {text: 'Bonjour tout le monde!', lang: 'fr'}] 8await yt.translate('Привет мир!', {to: ['en', 'fr']}); 9 10// [{text: ['Hello world!', 'Hello world!'], lang: 'en'}, {text: ['Bonjour tout le monde!', 'Bonjour tout le monde!'], lang: 'fr'}] 11await yt.translate(['Привет мир!', 'Привет мир!'], {to: ['en', 'fr']}); 12 13// { 14// key1: 'Hello 1', 15// key2: 'hi 2', 16// key3: [ false, 'Hello 1', true, 'hi 2', null ], 17// key4: 123, 18// привет: [ 'hi 4' ] 19// } 20const test = { 21 key1: 'привет 1', 22 key2: 'привет 2', 23 key3: [false, 'привет 1', true, 'привет 2', null], 24 key4: 123, 25 привет: ['привет 4'] 26}; 27await yt.translate(text, {to: 'en'});
Detects the language of the specified any type of data (string, string[], json).
1// ru 2await yt.detect('Привет мир!'); 3 4// ru 5await yt.detect('Привет мир!', {hint: 'en,fr'}); 6 7// ru 8await yt.detect(test, {hint: 'en,fr'}); 9 10// [{lang: 'ru'}, {lang: 'en'}] 11await yt.detect(['Привет мир!', 'Hello world!']);
1// {dirs: [], langs: {}} 2await yt.getLangs(); 3await yt.getLangs({ui: 'en'});
Demo | Docs | List of supported languages | API Key | Statistics
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
35 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More