Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

global-input-message

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

global-input-message

global input core js library

  • 1.8.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

global-input-message

This JavaScript library allows web and device applications to implement mobile integration. This mobile integration solution Global Input App integrates mobile with other devices, enabling Mobile Encryption , Mobile Authentication , Mobile Content Transfer , Mobile Input & Control , Second Screen Experience and Mobile Personal Storage features.

ReactJS or React Native Applications

If you have React applications, you may use the React extension library, which is much more intuitive to use.

Setup

npm module

npm install --save global-input-message

CDN

<script src="https://unpkg.com/global-input-message@1.8.3/distribution/globalinputmessage.js">
</script>

Usage

Import and create a connector object:

import {createMessageConnector} from "global-input-message";
const connector=createMessageConnector();

or use require:

const globalInputMessage=require("global-input-message");
const connector=globalInputMessage.createMessageConnector();

Next invoke the connect() function on the connector, passing the configuration that specifies the mobile user interface elements and the callbacks for receiving the events. It is straightforward to understand The following example is

 const mobileConfig={
   initData:{                              
     form:{
        title:"Content Transfer",   
        fields:[{
          label:"Content",            
          operation:{onInput:setContent}             
         }]
       }
     },
     ...
 };
 connector.connect(mobileConfig);           

The following configuration specifies a login form:

 const mobileConfig={        
   initData:{                              
     form:{
        title:"Sign In",
        id:"###username###@myCompany.com",
        fields:[{
           label:"Username",
           id:"username",
           operations:{
            onInput:setUsername
           }
       },{
          label:"Password",            
          id:"password",
          operations:{
            onInput:setPassword
          }
       },{
         label:"Sign In",
         type:"button",            
         operations:{
            onInput:signIn
          }
       }]
     }
   },
   ...
 };
    connector.connect(mobileConfig);           

You can try out the sample code above on JSFiddler

TypeScript

Typescript type definitions are bundled with the module.

Keywords

FAQs

Package last updated on 04 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc