JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q70198F
  • License MIT

Make input recognize numbers

Package Exports

  • input-number

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (input-number) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.