ya-translate-api-cli
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "ya-translate-api-cli", | ||
"version": "1.0.0", | ||
"main": "build/client.js", | ||
"scripts": { | ||
"build": "babel src -d build", | ||
"test": "echo \"No test found\"" | ||
"_from": "ya-translate-api-cli", | ||
"_id": "ya-translate-api-cli@1.0.0", | ||
"_inBundle": false, | ||
"_integrity": "sha512-lR/1Bzdr/6DiErWWH2Vy5uDHOdMIrFdfuSR9kKlrMeypHVPUQjMx9FvqNPkVN0aYZIVHV0TnPP2Bkg7iLzd9jA==", | ||
"_location": "/ya-translate-api-cli", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "tag", | ||
"registry": true, | ||
"raw": "ya-translate-api-cli", | ||
"name": "ya-translate-api-cli", | ||
"escapedName": "ya-translate-api-cli", | ||
"rawSpec": "", | ||
"saveSpec": null, | ||
"fetchSpec": "latest" | ||
}, | ||
"_requiredBy": [ | ||
"#USER" | ||
], | ||
"_resolved": "https://registry.npmjs.org/ya-translate-api-cli/-/ya-translate-api-cli-1.0.0.tgz", | ||
"_shasum": "db94a7fa9a85408a971a7328a84068a8f2624426", | ||
"_spec": "ya-translate-api-cli", | ||
"_where": "/Users/user/Desktop/cli/my-app", | ||
"author": { | ||
@@ -13,17 +29,6 @@ "name": "Vadim Yuldashbaev", | ||
}, | ||
"description": "Yandex Translate using CLI.", | ||
"keywords": [ | ||
"cli", "yandex", "translation" | ||
], | ||
"bin": { | ||
"YT": "./build/bin/index.js" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"engines": { | ||
"node": ">=6.11.4", | ||
"npm": ">=3.10.10" | ||
}, | ||
"license": "MIT", | ||
"bundleDependencies": false, | ||
"dependencies": { | ||
@@ -60,2 +65,4 @@ "@splash-cli/is-month": "^1.1.1", | ||
}, | ||
"deprecated": false, | ||
"description": "Yandex Translate using CLI.", | ||
"devDependencies": { | ||
@@ -67,3 +74,23 @@ "babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.6.1" | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=6.11.4", | ||
"npm": ">=3.10.10" | ||
}, | ||
"keywords": [ | ||
"cli", | ||
"yandex", | ||
"translation" | ||
], | ||
"license": "MIT", | ||
"main": "build/client.js", | ||
"name": "ya-translate-api-cli", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "babel src -d build", | ||
"test": "echo \"No test found\"" | ||
}, | ||
"version": "1.0.1" | ||
} |
@@ -7,6 +7,20 @@ # Yandex translate CLI app. | ||
`npm install yandex-translate-cli -g` | ||
`npm install ya-translate-api-cli -g` | ||
## Usage | ||
`yt <text> <language>` | ||
``` | ||
$ yt [text] [languge] | ||
``` | ||
For example: | ||
``` | ||
$ yt 'Hello world!' ru | ||
<!-- or --> | ||
$ yt text='Hello world!' lang=ru | ||
``` | ||
will output | ||
``` | ||
🇬🇧 : Hello world! | ||
🇷🇺 : Всем привет! | ||
``` |
5434
26