{"id":17750563,"url":"https://github.com/nuintun/inquirer-datepicker","last_synced_at":"2025-08-04T08:35:07.757Z","repository":{"id":25697544,"uuid":"104732627","full_name":"nuintun/inquirer-datepicker","owner":"nuintun","description":"Datepicker prompt for inquirer.js","archived":false,"fork":false,"pushed_at":"2023-04-19T05:12:55.000Z","size":79,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T01:40:02.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuintun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-09-25T09:52:37.000Z","updated_at":"2021-12-27T01:24:13.000Z","dependencies_parsed_at":"2024-06-18T22:51:24.498Z","dependency_job_id":"954cbc46-ca84-4dd6-9ff2-7e284a1621ba","html_url":"https://github.com/nuintun/inquirer-datepicker","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":0.2432432432432432,"last_synced_commit":"a31db467324f09bc63f8e285b80d2883209210ca"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nuintun/inquirer-datepicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Finquirer-datepicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Finquirer-datepicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Finquirer-datepicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Finquirer-datepicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuintun","download_url":"https://codeload.github.com/nuintun/inquirer-datepicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuintun%2Finquirer-datepicker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268670818,"owners_count":24288058,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-26T12:22:38.510Z","updated_at":"2025-08-04T08:35:07.717Z","avatar_url":"https://github.com/nuintun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# inquirer-datepicker\n\n\u003e Datepicker plugin for [Inquirer.js](https://github.com/SBoudrias/Inquirer.js)\n\u003e\n\u003e ![Datetime prompt](datepicker.png)\n\u003e\n\u003e [![NPM Version][npm-image]][npm-url]\n\u003e [![Download Status][download-image]][npm-url]\n\u003e [![Dependencies][david-image]][david-url]\n\n### Getting started\n\n###### install plugin\n\n[![NPM](https://nodei.co/npm/inquirer-datepicker.png)](https://nodei.co/npm/inquirer-datepicker/)\n\n###### register prompt\n\n```javascript\ninquirer.registerPrompt('datepicker', require('inquirer-datepicker'));\n```\n\n### Options\n\n###### message\n\nInherited from inquirer, message to be displayed while retrieving response.\n\n###### format\n\nAn array of format specifiers for printing the date to the console.\n\nUses the [moment](https://github.com/moment/moment) format options.\n\nFor example:\n\n```Javascript\n// 2017/09/26 22:56:36\n{\n  type: 'datepicker',\n  name: 'date',\n  message: 'Select a date time: ',\n  format: ['Y', '/', 'MM', '/', 'DD', ' ', 'HH', ':', 'mm', ':', 'ss']\n}\n\n// 2017/09/26 10:56:36 PM\n{\n  type: 'datepicker',\n  name: 'date',\n  message: 'Select a date time: ',\n  format: ['Y', '/', 'MM', '/', 'DD', ' ', 'hh', ':', 'mm', ':', 'ss', ' ', 'A']\n}\n```\n\n###### default\n\nInitial value for datepicker.\n\nExample:\n\n```javascript\n{\n  type: 'datepicker',\n  name: 'date',\n  message: 'Select a date time: ',\n  default: new Date('2017-09-28 17:36:05'),\n}\n```\n\n###### min, max\n\nThese specify a range for entry. Users will be prohibited from entering a value higher or lower.\n\n```Javascript\n{\n  type: 'datepicker',\n  name: 'date',\n  message: 'Select a date time: ',\n  // Enter only 2017/9/1 6:00 to 2017/9/26 18:00\n  min: {\n    year: 2017,\n    month: 9,\n    day: 1,\n    hour: 6\n  },\n  max: {\n    year: 2017,\n    month: 9,\n    day: 26,\n    hour: 18\n  }\n}\n```\n\n###### steps.{ years, months, days, hours, minutes, seconds }\n\nThese specify the allowed interval (modulo), but only work when useing up and down keys.\n\nFor instance:\n\n```Javascript\n// Minutes can only be entered in intervals of 15 minutes\n{\n  type: 'datepicker',\n  name: 'date',\n  message: 'Select a date time: ',\n  steps: {\n    minutes: 15\n  }\n}\n```\n\n### Thanks\n\nSee: [inquirer-datepicker-prompt](https://github.com/DerekTBrown/inquirer-datepicker-prompt)\n\n[npm-image]: https://img.shields.io/npm/v/inquirer-datepicker.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/package/inquirer-datepicker\n[download-image]: https://img.shields.io/npm/dm/inquirer-datepicker.svg?style=flat-square\n[david-image]: https://img.shields.io/david/nuintun/inquirer-datepicker.svg?style=flat-square\n[david-url]: https://david-dm.org/nuintun/inquirer-datepicker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuintun%2Finquirer-datepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuintun%2Finquirer-datepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuintun%2Finquirer-datepicker/lists"}