{"id":15592229,"url":"https://github.com/derhuerst/range-prompt","last_synced_at":"2025-04-15T05:26:19.671Z","repository":{"id":13430240,"uuid":"74351246","full_name":"derhuerst/range-prompt","owner":"derhuerst","description":"A prompt to select a value in a range.","archived":false,"fork":false,"pushed_at":"2022-07-05T10:12:56.000Z","size":13,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T16:21:19.363Z","etag":null,"topics":["cli","prompt"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/range-prompt","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhuerst.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-21T10:11:01.000Z","updated_at":"2022-07-05T10:12:57.000Z","dependencies_parsed_at":"2022-08-09T03:30:17.996Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/range-prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Frange-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Frange-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Frange-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Frange-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/range-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249012179,"owners_count":21198169,"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":["cli","prompt"],"created_at":"2024-10-02T23:59:18.261Z","updated_at":"2025-04-15T05:26:19.643Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# range-prompt\n\n**A prompt to select a value in a range.**\n\n[![asciicast](https://asciinema.org/a/93623.png)](https://asciinema.org/a/93623)\n\n[![npm version](https://img.shields.io/npm/v/range-prompt.svg)](https://www.npmjs.com/package/range-prompt)\n[![dependency status](https://img.shields.io/david/derhuerst/range-prompt.svg)](https://david-dm.org/derhuerst/range-prompt#info=dependencies)\n[![dev dependency status](https://img.shields.io/david/dev/derhuerst/range-prompt.svg)](https://david-dm.org/derhuerst/range-prompt#info=devDependencies)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/range-prompt.svg)\n[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)\n\n*range-prompt* uses [*cli-styles*](https://github.com/derhuerst/cli-styles) and [*prompt-skeleton*](https://github.com/derhuerst/prompt-skeleton) to have a look \u0026 feel consistent with [other prompts](https://github.com/derhuerst/prompt-skeleton#prompts-using-prompt-skeleton).\n\n\n## Installing\n\n```\nnpm install range-prompt\n```\n\n\n## Usage\n\n```js\nconst rangePrompt = require('range-prompt')\n\nrangePrompt('How much ice cream would you like?', {\n\tmin: 0, max: 10, value: 2, step: .1, unit: 'kg'\n})\n.on('data', (item) =\u003e console.log('Changed to', item, 'kg'))\n.on('abort', (item) =\u003e console.log('You aborted, having chosen', item, 'kg'))\n.on('submit', (item) =\u003e console.log('You chose', item, 'kg'))\n```\n\n\n## Related\n\n- [`date-prompt`](https://github.com/derhuerst/date-prompt)\n- [`mail-prompt`](https://github.com/derhuerst/mail-prompt)\n- [`multiselect-prompt`](https://github.com/derhuerst/multiselect-prompt)\n- [`number-prompt`](https://github.com/derhuerst/number-prompt)\n- [`select-prompt`](https://github.com/derhuerst/select-prompt)\n- [`text-prompt`](https://github.com/derhuerst/text-prompt)\n- [`tree-select-prompt`](https://github.com/derhuerst/tree-select-prompt)\n- [`cli-autocomplete`](https://github.com/derhuerst/cli-autocomplete)\n- [`switch-prompt`](https://github.com/derhuerst/switch-prompt)\n\n\n## Contributing\n\nIf you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/range-prompt/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Frange-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Frange-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Frange-prompt/lists"}