free-google-translation
v1.0.2
Published
Free Google Translation provided by www.easyhindityping.com
Downloads
18
Maintainers
Readme
Number Formatter
Publishing NPM Package
Create & PUsh Git Tag:
git tag v1.0.2 git push origin --tags
Login to Npm
npm login userename: r****** password: *** email: sam***.***.*****@****.com
To Verify if Logged in:
npm whoami
Modify the tag version on package.json as below:
{ "name": "free-google-translation", "version": "1.0.1", ... }
Publish the package in npm js
npm publish
Will Give Following output:
npm notice npm notice 📦 [email protected] npm notice === Tarball Contents === npm notice 767B package.json npm notice 2.3kB index.js npm notice 1.4kB README.md npm notice 16.8kB test/test.js npm notice === Tarball Details === npm notice name: google-input-tool npm notice version: 1.1.2 npm notice package size: 4.1 kB npm notice unpacked size: 21.2 kB npm notice shasum: 57e02d067884918d114d2ea9a1bdb3cbb19ee3db npm notice integrity: sha512-BrDfNniAQBnB6[...]B1Lo5b05Pn71Q== npm notice total files: 4 npm notice + [email protected]
A small and free library for google translation
Installation
npm install free-google-translation
Usage
let numFormatter = require('free-google-translation');
let sourceText = 'How are you';
let sourceLanguage = 'en';
let targetLanguage = 'ne';
googleTranslate(sourceText, sourceLanguage, targetLanguage)
.then(function(response) {
console.log(response);
});
Output should be तिमीलाई कस्तो छ