Socket
Socket
Sign inDemoInstall

input-number

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    input-number

Make input recognize numbers


Version published
Weekly downloads
47
increased by104.35%
Maintainers
1
Install size
21.9 kB
Created
Weekly downloads
 

Readme

Source

input-number stable

Make input field recognize numbers close to the caret, like chrome dev tools:

input-number

Usage

npm install input-number

const num = require('input-number');

var input = document.createElement('input');
input.value = 'rgb(230, 110, 210)';

num(input, {
	min: 0,
	max: 255,
	step: 1
});

See also

  • settings-panel — simple settings for app, demo or tests.
  • autosize — make textarea align it’s height by content.
  • autosize-input — make text input adjust it’s width by content.

Keywords

FAQs

Last updated on 13 Mar 2018

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