New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

google-input-tool

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-input-tool

Transliterate language based on code provided from input tool api

latest
Source
npmnpm
Version
1.4.3
Version published
Weekly downloads
159
76.67%
Maintainers
1
Weekly downloads
 
Created
Source

google-input-tool

Small Free library tool to transliterate words for a provided language code.

Publishing NPM Package

  • Create & PUsh Git Tag:

    git tag v1.1.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": "google-input-tool",
      "version": "1.1.1",
      ...
    }
    
  • 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
    

Installation of this package

npm install google-input-tool

Usage of this package

let googleTransliterate = require('google-input-tool');

let sourceText = 'hami';
let inputLanguage = 'ne-t-i0-und';
let maxResult = 8;
let request = new XMLHttpRequest();

googleTransliterate(request, sourceText, inputLanguage, maxResult)
.then(function(response) {
    console.log('Transliterated Text: ', response);
});

Output:
Transliterated Text: हामी

Supported Languages

LanguageCode
Amharicam-t-i0-und
Arabicar-t-i0-und
Bengalibn-t-i0-und
Chinese (Hong Kong)yue-hant-t-i0-und
Chinese (Simplified, China)zh-t-i0-pinyin
Chinese (Traditional, Taiwan)zh-hant-t-i0-und
Greekel-t-i0-und
Gujaratigu-t-i0-und
Hindihi-t-i0-und
Kannadakn-t-i0-und
Malayalamml-t-i0-und
Marathimr-t-i0-und
Nepaline-t-i0-und
Oriyaor-t-i0-und
Persianfa-t-i0-und
Punjabipu-t-i0-und
Russianru-t-i0-und
Sanskritsa-t-i0-und
Serbiansr-t-i0-und
Sinhalesesi-t-i0-und
Tamilta-t-i0-und
Telugute-t-i0-und
Thaith-t-i0-und
Tigrinyati-t-i0-und
Urduur-t-i0-und

Repository

https://github.com/sambhuWeb/google-input-tool

Keywords

Transliterate

FAQs

Package last updated on 09 May 2020

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