free-google-translation

1.0.2 • Public • Published

Number Formatter

Publishing NPM Package

  1. Create & PUsh Git Tag:

    git tag v1.0.2 git push origin --tags

  2. Login to Npm

    npm login
    userename: r******
    password: ***
    email: sam***.***.*****@****.com
    

    To Verify if Logged in:

    npm whoami 
    
  3. Modify the tag version on package.json as below:

    {
      "name": "free-google-translation",
      "version": "1.0.1",
      ...
    }
    
  4. Publish the package in npm js

    npm publish 
    

    Will Give Following output:

    npm notice 
    npm notice 📦  google-input-tool@1.1.2
    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 
    + google-input-tool@1.1.2
    

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 तिमीलाई कस्तो छ

Package Sidebar

Install

npm i free-google-translation

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

5.44 kB

Total Files

4

Last publish

Collaborators

  • rajsamb