{"id":16125774,"url":"https://github.com/dy/input-number","last_synced_at":"2025-06-20T17:08:25.428Z","repository":{"id":66081306,"uuid":"63397720","full_name":"dy/input-number","owner":"dy","description":"Make input recognize numbers","archived":false,"fork":false,"pushed_at":"2021-03-13T21:27:48.000Z","size":30,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T17:08:13.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://requirebin.com/?gist=797d1f7e065dae3380eb940545f06340","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-15T06:33:58.000Z","updated_at":"2021-03-13T21:27:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7196edc7-bb0c-4d51-892c-f78aa0560c56","html_url":"https://github.com/dy/input-number","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dy/input-number","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Finput-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Finput-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Finput-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Finput-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/input-number/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Finput-number/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260985174,"owners_count":23092885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T21:31:51.908Z","updated_at":"2025-06-20T17:08:20.392Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# input-number [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nMake input field recognize numbers close to the caret, like chrome dev tools:\n\n[![input-number](./preview.gif \"input-number\")](http://requirebin.com/?gist=797d1f7e065dae3380eb940545f06340)\n\n## Usage\n\n[![npm install input-number](https://nodei.co/npm/input-number.png?mini=true)](https://npmjs.org/package/input-number/)\n\n```js\nconst num = require('input-number');\n\nvar input = document.createElement('input');\ninput.value = 'rgb(230, 110, 210)';\n\nnum(input, {\n\tmin: 0,\n\tmax: 255,\n\tstep: 1\n});\n```\n\n## See also\n\n* [settings-panel](https://github.com/dfcreative/settings-panel) — simple settings for app, demo or tests.\n* [autosize](https://github.com/jackmoore/autosize) — make textarea align it’s height by content.\n* [autosize-input](https://github.com/yuanqing/autosize-input) — make text input adjust it’s width by content.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Finput-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Finput-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Finput-number/lists"}