Socket
Book a DemoInstallSign in
Socket

api-translate-expressjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-translate-expressjs

Create a Translate Api from google with Express JS

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

API Translate Express

Create a Translate Api from google with Express JS

Installation

git clone https://github.com/fitri-hy/api-translate-express.git
cd api-translate-express
npm install api-translate-expressjs

Create & Setup (.env)

# port
PORT='5000'

# rate 15 minute
LIMIT_RATE='15 * 60 * 1000'

# limit request
LIMIT_MAX='100'

# message over limit
LIMIT_MESSAGE='Too many requests from this IP, please try again later.'

Create & Setup (index.js)

require('api-translate-expressjs');

Run Project

node index.js

Api Endpoint

http://localhost:5000/translate?text=<query>&from=<fromLang>&to=<toLang>

Usage Example

http://localhost:5000/translate?text=cat&from=en&to=id

Support Language

Go to Language Code

Official Site: VISIT

Keywords

api

FAQs

Package last updated on 03 Apr 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.