New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

srt-translate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

srt-translate

A package that translates .srt files using Google Cloud Translate

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

srt-translate

A package that translates .srt files using Google Cloud Translate.

Usage

Command Line (CLI):

Install the package globally:
sudo npm install -g srt-translate
Usage:
srt-translate --key "one-drive-000000-00000x00xxxx.json" --input source.srt --output output.srt --target en

Node:

Install the package:
sudo npm install srt-translate
Usage:
/* Import the package */
import srtTranslate from 'srt-translate';

/* Create a class instance */
let translate = new srtTranslate({
    key: 'one-drive-000000-00000x00xxxx.json',
    input: 'source.srt',
    output: 'output.srt',
    target: 'en'
});

/* Initialize the translation */
translate.init();

Options

OptionRequiredDefaultDescription
key:heavy_check_mark:NoneYour Google Cloud API JSON file. See Google's Setup Page for more information.
input:heavy_check_mark:NoneYour .srt input file.
output:heavy_check_mark:NoneYour .srt output destination.
target:heavy_check_mark:NoneTarget language (en, ru and so on). See language support for more information.
delay:x:200Delay between requests made to Google Translate.
silent:x:FalseDisables the printing of translated lines.

Keywords

FAQs

Package last updated on 03 Jul 2022

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