input-number

1.1.1 • Public • Published

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.

Package Sidebar

Install

npm i input-number

Weekly Downloads

62

Version

1.1.1

License

MIT

Unpacked Size

5.39 kB

Total Files

4

Last publish

Collaborators

  • dfcreative