Socket
Socket
Sign inDemoInstall

inputadviser

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    inputadviser

input adviser helper


Version published
Weekly downloads
1
Maintainers
1
Install size
7.18 kB
Created
Weekly downloads
 

Readme

Source

html-InputAdviser

An adviser for HTML input tag

Preview

preview

Get

1. Directly use dist/InputAdviser.js

Just load InputAdviser.js by script tag and the InputAdviser is the class object.

2. Install from npm

npm i inputadviser

Then in your javascript code

import InputAdviser from 'inputadviser'

Usage

new InputAdviser('selector of the input or the element',async word=>{
	let list=[];
	//do something to get advice list
	list=[//just values
		'abc',
		'bdc',
		'poi',
	];

	list=[//values with descriptions
		{
			value:'abc',
			desc:'this is abc',
		},
		{
			value:'bdc',
			desc:'this is bdc',
		},
		{
			value:'poi',
			desc:'this is poi',
		},
	];
	return list;
});

Keywords

FAQs

Last updated on 22 Oct 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc