Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/date-prompt
A CLI date picker prompt.
https://github.com/derhuerst/date-prompt
cli prompt
Last synced: 12 days ago
JSON representation
A CLI date picker prompt.
- Host: GitHub
- URL: https://github.com/derhuerst/date-prompt
- Owner: derhuerst
- License: isc
- Created: 2015-09-10T23:25:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T16:20:41.000Z (over 4 years ago)
- Last Synced: 2024-10-03T23:53:42.406Z (about 2 months ago)
- Topics: cli, prompt
- Language: JavaScript
- Homepage: https://github.com/derhuerst/date-prompt
- Size: 32.2 KB
- Stars: 18
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
# date-prompt π
**A CLI prompt to ask for date & time.**
[![asciicast](https://asciinema.org/a/26269.png)](https://asciinema.org/a/26269)
[![npm version](https://img.shields.io/npm/v/date-prompt.svg)](https://www.npmjs.com/package/date-prompt)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/date-prompt.svg)
![minimum Node.js version](https://img.shields.io/node/v/date-prompt.svg)## Installing
```shell
npm install date-prompt
```## Usage
```js
const datePrompt = require('date-prompt')datePrompt('When is your birthday?')
.then(isoStr => console.log('Submitted with', isoStr))
.catch(isoStr => console.log('Aborted with', isoStr))
```## Related
- [`enquirer`](https://github.com/enquirer/enquirer) βΒ Stylish, intuitive and user-friendly prompts.
- [`mail-prompt`](https://github.com/derhuerst/mail-prompt)
- [`range-prompt`](https://github.com/derhuerst/range-prompt)
- [`tree-select-prompt`](https://github.com/derhuerst/tree-select-prompt)
- [`cli-autocomplete`](https://github.com/derhuerst/cli-autocomplete)## Contributing
If you have a question or need support using `date-prompt`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use [the issues page](https://github.com/derhuerst/date-prompt/issues).