{"_id":"inquirer-date-prompt","_rev":"5-654272ffb51d6698bf7e94e78cf7664c","name":"inquirer-date-prompt","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"inquirer-date-prompt","version":"1.0.0","description":"A date prompt plugin for Inquirer.js.","main":"index.js","types":"index.d.ts","keywords":["inquirer","date","time","picker","prompt","plugin","locale"],"author":{"name":"Alex Havermale","url":"https://github.com/haversnail"},"engines":{"node":">=10"},"license":"MIT","peerDependencies":{"inquirer":"7.x"},"gitHead":"b07389888815d29bbec0734ec5aa1666e8a23dbf","_id":"inquirer-date-prompt@1.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DgJsaGzs2hK98MWp4nIKj48oE6GYi2Mho1drWCkq0jJU+/s2vweVHyWzo4RXPtQWOiN2QWSQfbcDbdsnVPeJ4A==","shasum":"98b73b18215968fb7a815fb4ae0ea3e18a8455f2","tarball":"https://registry.npmjs.org/inquirer-date-prompt/-/inquirer-date-prompt-1.0.0.tgz","fileCount":8,"unpackedSize":399011,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDwQXCRA9TVsSAnZWagAA9DQP/jcHCXRlnBHo7tMZKxbP\nKE1XENNjrAc6cMXuN4hSV2xyhbtFkZ2ql5K7XSY3uCoYKA3qw9fmDkjt8iXo\n4vNDuNm5yHGoVdKTYnMCXSl8g3YB9KnK+1UoNoNBLWE/LZUvoJosN/dEHgeF\nhV3DIyLMVB13p2VOfgJg8pMZUB3mRjJMJ/7OKxMzK1mwG4tkxiAHk7xwIExn\nyEtxO2hDKRiKXlfzaPWRaTfU7vZfEei2GHzt5wdlIQj2YGe+a5cpev3Cpz40\nkgiG+jEb4AgY+t03EQlot/gQPg5c5PWs0Ifq6+T3h9xzrYCl6xO+8dfkK59S\n4ZM/OqZaLUbVMlNW6VS0vw+xh305VSgHjljDqpPetRo5zN9rTHGW/2WywM7N\nnObo1gEc9o42bDZyU2JX7BXvahsU3KIzDPIv2DqFkzvEWkp2QzB4X/v53o0W\nSRD7Txoq8aWPHHqxUtUFYYh7CIGBKV5KHgRu/SlSJ8nidElJZpHwVDnpws9b\ntRsvAJneCSprpIYqmyeGZUwZcSHh2vi1c8b/c637FCX7wO9GqbszPQ9Uw57l\nHHjwOOPbm584dUSYbKnTrX0SoIsf/2ylD43MoedsMxjaSt0xigbHAYy3W6Dz\nrnRvukwCc6MHh0BeeUieHClXPUWvXoZOr4Iwt2sXuNsWMNibTQkO3600hceK\nUpuw\r\n=wh4u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn7i+j04i98F+S/rej7lhJpe0k4pPyl45ENOxqdG5RkQIhAPHPjJLtAB8j6/q57ZHfZH97E/BeWlwRN9KeIEFRaQeh"}]},"_npmUser":{"name":"haversnail","email":"alex@builtbysnail.com"},"directories":{},"maintainers":[{"name":"haversnail","email":"alex@builtbysnail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-date-prompt_1.0.0_1611596822955_0.3580561991361533"},"_hasShrinkwrap":false},"1.0.1":{"name":"inquirer-date-prompt","version":"1.0.1","description":"A date prompt plugin for Inquirer.js.","main":"index.js","types":"index.d.ts","keywords":["inquirer","date","time","picker","prompt","plugin","locale"],"author":{"name":"Alex Havermale","url":"https://github.com/haversnail"},"repository":{"type":"git","url":"git+https://github.com/haversnail/inquirer-date-prompt.git"},"homepage":"https://github.com/haversnail/inquirer-date-prompt","engines":{"node":">=10"},"license":"MIT","peerDependencies":{"inquirer":"7.x"},"gitHead":"2c4d61691769798f3ac7b2fe00d8918e5ed11e7e","bugs":{"url":"https://github.com/haversnail/inquirer-date-prompt/issues"},"_id":"inquirer-date-prompt@1.0.1","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-H1+6vIA5O+bCzS/sCqQGTopXDnp8rR5Lo6P1nfUfbaR5CIF/tRmnDCDphmNv5NbOp8xhNz1aN5HCVlvy0mZNMQ==","shasum":"3939c8408ef7ac40ad9995c6db129a16b6fea565","tarball":"https://registry.npmjs.org/inquirer-date-prompt/-/inquirer-date-prompt-1.0.1.tgz","fileCount":5,"unpackedSize":16336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDwbhCRA9TVsSAnZWagAA+2wP+wf4AUhPA1buMJyfKTHl\nOdbA3gKlhROZWJtg29LkYwhy0D5kJGUYUYxlsrlSwfo7KCbMq9hvKSEYrW8D\nbe2OH7YpZyNcKCDH2FFc3tqqw7SZ1a1BTMKD7Ib63IF8cEKF2PgSdwWiSyb0\nG3Og6IAfYRm6m1wlXhzoFkgTuuokJzFuVoGhmlpfPFnHlASLboO7yxTg9ZRn\ny+NY/iox9w4vrqXOcIYz2mvoZYCVvqLg3hRKCLggwvitabCzyRSAsJMdmQbt\nGasciDmiZWIwL2LL7FLaXY2Hm7yddIEaEL556EyPsX5Dg30JZkBaZLxxztI6\nfG6ycXYtmQwFkucNxmhm0xds5rRLPXT8uwN2CI4GixX8A1lK0mBQviIjbi9A\nB43sSSMIcntIG/T1uTsZ8NIBSD1JCGT+TrxNc2IruyHMvQ0HPuCys6dh0T+C\nkBSC4Cix6+khdUCKFh+oqJs9gY+ZfQ+rx1Yf17RsBy2ddrNp+69BFRBOvnSF\nUszaqXmQcHAUevFLhBsAKKZFqVMI6EKwwO8sisIoUKOQhI/3ZfH7Z8TlwnO0\nRXp+udHfe4Ji2nErewc+z5k50M8SWA+TNskUxmXW8Iw6bCwqGhY+UEW8B3jS\nq5OZzI11zpWjRPDzlpf0aLwbOYJ4ovOO/dsSw5ChI98X85jHAcn5h0sTtM5d\nV2Ss\r\n=bhZu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMtW2WBKXh1Nx5IC7LTkmEapSHxNXpI+5fYyjlQdO9eAiBDTzvWSsA6ZTaSQ/E6F6XITMISGiB+Xl6Ki1EriGbqtg=="}]},"_npmUser":{"name":"haversnail","email":"alex@builtbysnail.com"},"directories":{},"maintainers":[{"name":"haversnail","email":"alex@builtbysnail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-date-prompt_1.0.1_1611597536848_0.312655562798251"},"_hasShrinkwrap":false},"2.0.0":{"name":"inquirer-date-prompt","version":"2.0.0","description":"A date prompt plugin for Inquirer.js.","main":"index.js","types":"index.d.ts","keywords":["inquirer","date","time","picker","prompt","plugin","locale"],"author":{"name":"Alex Havermale","url":"https://github.com/haversnail"},"repository":{"type":"git","url":"git+https://github.com/haversnail/inquirer-date-prompt.git"},"homepage":"https://github.com/haversnail/inquirer-date-prompt","engines":{"node":">=10"},"license":"MIT","peerDependencies":{"inquirer":"7.x"},"devDependencies":{"semantic-release":"^17.4.1"},"scripts":{"release":"semantic-release"},"gitHead":"119784dff46f3e880173ecc8f588dcc1113d617f","bugs":{"url":"https://github.com/haversnail/inquirer-date-prompt/issues"},"_id":"inquirer-date-prompt@2.0.0","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-7nIxHK8U94KCwuB93aasbZ00EOvTn1RMnQ9uBfmluE80PruNwRwlcIGwBBPVuDKuFaklUda8+QaQ/xUTFZNcJw==","shasum":"20fe100bd0b328e543f34d7b598b66d39dc4c43c","tarball":"https://registry.npmjs.org/inquirer-date-prompt/-/inquirer-date-prompt-2.0.0.tgz","fileCount":5,"unpackedSize":16403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRkH/CRA9TVsSAnZWagAAizgP/jlNYr7SRBwwazBWGws3\n7kIOwNIRveUs6rsJJ/iK9R8xvEWvtdLxqCqi3cjBlYxem26eVho9pskSUfi9\nOv4J0MYQs9maXk9zGgybwUrT9xFQrlpGsUyGOPRW/cp2m9w2no1wv3wyIcqe\nnw1zXNJr0KmgkZ9/badsDZh1uvn0E4sFifh0IdFXwnE/UY9oE1EQ3TxL/6/p\nsPy7zzi3LddaJt04SdF2OPrz/q0t17+2BmNu3/kMbq9+4gYjtCT96Xc9p7MJ\nsDJwGAfZkf1DmahiX25W78HekAZk6GeCCSyfC7YdNsDmnC6bRRRB71mLTQsL\nO1IVJ+26I6VG0ilJX/YkYnTGn357QizRMrLu8K4L9XjS7h/tfW2M/pmfdvbH\nzRHwRFCQAIo0bcSmF+sbd6ReI6N6OCyZRNiYve57JRVB6LT0VROWVJWCs0gs\nm/FmNIXA0QZr5eIKBTBa1JvSbEqk70hpCfrT1nhaY/Sc3kWWMmjVE1fp+5OM\nstBVNOMPL8TXDBBahrlZAsYI4I+0D0IMwq/eDx5JSf8iwf3ntYAtu7mJxOhj\n9FmBTwFzNPjPW3Aqt+Jc+tpOoFyk1XjTJ8Oq2XmVdJ8/sWIMlxQy+a7/mh/3\nNILE5xqXXi8rblWmaDCXsu5WQXCLCl1WVOIDckx9MBT7zb5GPMGntUa8Xt+D\njElj\r\n=Lfu4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzmNXvp3pZobXoq0/pY23h8oVXJMi1H1AbE2hjox0NwAiEAxvs+uTjhG0KLx+0q/JxL44q5PJ4kYRNIgfNICj578pw="}]},"_npmUser":{"name":"haversnail","email":"alex@builtbysnail.com"},"directories":{},"maintainers":[{"name":"haversnail","email":"alex@builtbysnail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-date-prompt_2.0.0_1615217151412_0.7996579289668426"},"_hasShrinkwrap":false},"2.0.1":{"name":"inquirer-date-prompt","version":"2.0.1","description":"A date prompt plugin for Inquirer.js.","main":"index.js","types":"index.d.ts","keywords":["inquirer","date","time","picker","prompt","plugin","locale"],"author":{"name":"Alex Havermale","url":"https://github.com/haversnail"},"repository":{"type":"git","url":"git+https://github.com/haversnail/inquirer-date-prompt.git"},"homepage":"https://github.com/haversnail/inquirer-date-prompt","engines":{"node":">=10"},"license":"MIT","peerDependencies":{"inquirer":">= 7.x"},"devDependencies":{"@semantic-release/git":"^9.0.0","semantic-release":"^17.4.1"},"scripts":{"release":"semantic-release"},"gitHead":"334956c34c3547c0f75fe165d5c310d7acb8cd4d","bugs":{"url":"https://github.com/haversnail/inquirer-date-prompt/issues"},"_id":"inquirer-date-prompt@2.0.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.11","dist":{"integrity":"sha512-1Rp9h8FJnORK6J+76jBbN4cULueGrI3vzY1yvH8M2dJ6cYm2/6ZNkOB3O7uf4LeiZUEZK14UTORrwxNGb9y/CA==","shasum":"38dc7dbc19774513fd32a47fe8958ea5a9d67eb6","tarball":"https://registry.npmjs.org/inquirer-date-prompt/-/inquirer-date-prompt-2.0.1.tgz","fileCount":5,"unpackedSize":16445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnZ7VCRA9TVsSAnZWagAA9w8P+wR2DoGw5nbYAhygjsMy\nXyvnf8AO+UlNfHlPqF9QKk/7yzn3kVqIaqS8QeRxjcwsLQcxYv8clwo+U7BA\nu0FsA33Eoi0vlmE5YdeSx3zRdlnmSc0s7+Z9VTaYbPIWNRZ0w71GqMsrrk/f\nTMVNn75sexpZMSBu4uvSd2cJUcqNtQ/QV3MGM1GQL6M/11i79m2BH6NL9f+U\nOSZh/9JbTGqApp76N/7rRSVscxW2R1IewmPuUdjDl/yKTUuglA1pfZHJktmF\ne8K4I1cW7BgtBHFmA/7ZTNsDxYfxNdPnQxnglLg5jJXujCid0hDrtlu0RV20\nWpXvx7BTEPcIOtTEsGcSNvOWr9/4QfKDHqa4SfZNZc1abAlDKWARH88tzDMQ\n6OdNUd3tLJiZLVgcjo3tfCMw58Pfix1brhRHxNdkNVU+rib+7bo3aVKrzayG\nTxMPaLsqjsHbuIXOKGW8Z5NaJ+khp1eTfCy5V9K0pIrIxMgq31i55jhDvydK\njFk05eAJ5PxFs0lH0S/97RhR/4nWwBRKlk5DdrurXz/9dcVBVQubbZSuLh47\nXx3QYBn9ysNwyiAvrhBkwyyDohoYVVJ2nL2eOGDilRxQwAzgOjplxe9dORY/\nAZHhFT0WjRT8k8tCZUCN08YW+LnL75jb2np+02sWOgndR6wsRoK4JZIzbzCi\n3Q0y\r\n=yvnp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9WaWGzJRLke3hX29HqaaT/W0GyxGw5jZtKYeR3iEp3wIhAJ7hvalVj+GgmbriSNVtkRxSpeoTqenxpqnLABqSO1Jg"}]},"_npmUser":{"name":"haversnail","email":"alex@builtbysnail.com"},"directories":{},"maintainers":[{"name":"haversnail","email":"alex@builtbysnail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-date-prompt_2.0.1_1620942549301_0.7960103715812403"},"_hasShrinkwrap":false},"3.0.0":{"name":"inquirer-date-prompt","version":"3.0.0","description":"A date prompt plugin for Inquirer.js.","type":"module","main":"index.js","types":"index.d.ts","keywords":["inquirer","date","time","picker","prompt","plugin","locale"],"author":{"name":"Alex Havermale","url":"https://github.com/haversnail"},"repository":{"type":"git","url":"git+https://github.com/haversnail/inquirer-date-prompt.git"},"homepage":"https://github.com/haversnail/inquirer-date-prompt","engines":{"node":">=12"},"license":"MIT","peerDependencies":{"inquirer":">= 9.x"},"devDependencies":{"@semantic-release/git":"^9.0.0","semantic-release":"^17.4.1"},"scripts":{"release":"semantic-release"},"gitHead":"307994c7732fb063f7a3db43fe52749e57ee97b3","bugs":{"url":"https://github.com/haversnail/inquirer-date-prompt/issues"},"_id":"inquirer-date-prompt@3.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.11","dist":{"integrity":"sha512-uVZdK9w+TowonPzA2YfgFqqFx6krUB9e7/2XqdtDGmMTOxnPm9pW6QpPFxqsshrOrzrxf1fzqsLDQdxS3SUr4w==","shasum":"a684fd45c4189c80e59677576721e60055f692e7","tarball":"https://registry.npmjs.org/inquirer-date-prompt/-/inquirer-date-prompt-3.0.0.tgz","fileCount":7,"unpackedSize":17309,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXn63B/YvG/0hAr5gOr85m50Qfr7Ty5gUjnmC0kdK5BAiA0JW3a2oNWHM+1LlTDEy6+cHPOk8sxamYh49uu3lCylw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRtzjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojJQ//ROOcNvfksd26hDJj9PxF1OVK7T/yDJYP+LclY5e5HQgTWQUR\r\ny4/SXyz+LqT+pI8scC9S+a6I5hKVYM9Bd0/cDgEtPkpfG75N1hgpLrU1F/wb\r\nlTwBdqRvMOw4TebE3qZS2K2hraa26dD4VqWA7IrLRNNx5HpNYr1Dz6DScj7f\r\nVCEuV2JvKi6LQlHGIUrugOnEF79iaFUK9SMoqJ5FH9SW1uNHr8Kh+aJQj/D6\r\nO1M4TrOHQk6qVHHx9PPx5jNoKdriKzTnzZ/9tg1Gwkyyv74NXPZASbGExOgP\r\ne+ek6u/a3pZHUfJL+B8TEA4hPN4RpGzKiExs1V0jpO6WWc2mua6M4P6FMsAJ\r\nwyEpSh1c1lfjdcbitGghrhhfWMJTr/Si1ix3jmStfbrzAX89McDSINuF7yDM\r\nq59PPVW5DArAoTsfVh3sITpJdAIMSZB8Ui77EdotZHtfuZa5FghJth1Z9bb4\r\nH4JaAXVhsq37tw5wD5aTr3Sbo0Sb+PVgVTG6AlmxrzFqLxm6mQ7rMjZTS7jM\r\nBVcV4rG3+YaNjyEXofB0qy712Ablm/DghjHQU4qe+uBXqGIFKQ0P50j+GbZd\r\nQbNFM6skx+cscHIpriIejo0u/9RGJuyNeNhPI5W4R1SaPuNCUWxaYC27LT2H\r\nTeTdzWoJhOiSFnm4A3uuhREPAnO6NxCMVIA=\r\n=1okS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"haversnail","email":"alex.havermale@icloud.com"},"directories":{},"maintainers":[{"name":"haversnail","email":"alex.havermale@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-date-prompt_3.0.0_1665588451531_0.5241541180411662"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-25T17:47:02.955Z","1.0.0":"2021-01-25T17:47:03.116Z","modified":"2022-10-12T15:27:31.812Z","1.0.1":"2021-01-25T17:58:57.014Z","2.0.0":"2021-03-08T15:25:51.542Z","2.0.1":"2021-05-13T21:49:09.456Z","3.0.0":"2022-10-12T15:27:31.726Z"},"maintainers":[{"name":"haversnail","email":"alex.havermale@icloud.com"}],"description":"A date prompt plugin for Inquirer.js.","keywords":["inquirer","date","time","picker","prompt","plugin","locale"],"author":{"name":"Alex Havermale","url":"https://github.com/haversnail"},"license":"MIT","readme":"<img width=\"75px\" height=\"75px\" align=\"right\" alt=\"Inquirer Logo\" src=\"https://raw.githubusercontent.com/SBoudrias/Inquirer.js/master/assets/inquirer_readme.svg?sanitize=true\" title=\"Inquirer.js\"/>\n\n# inquirer-date-prompt\n\nA comprehensive date prompt plugin for Inquirer.js.\n\n## Why?\n\n- **No** additional dependencies\n- Leverages native [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) and [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) API\n- Augmented TypeScript declarations\n- Locale-agnostic [<sup>1</sup>](#caveats)\n- The other plugins weren't cutting it\n\n## Installation\n\n```sh\nnpm install inquirer-date-prompt\n```\n\n> :warning: Note that the latest version of this package uses native ESM modules, which means this plugin will only work with inquirer `v9` and above. If you cannot use ESM modules yet for whatever reason, you can rely on `v2.x` until you're ready to upgrade your environment:\n>\n> ```sh\n> npm install --save inquirer-date-prompt@^2.0.0\n> ```\n\n## Usage\n\n```js\nimport inquirer from \"inquirer\";\nimport DatePrompt from \"inquirer-date-prompt\";\n\ninquirer.registerPrompt(\"date\", DatePrompt);\n\ninquirer.prompt({\n  type: \"date\",\n  // ...\n});\n```\n\nAlthough you can use whatever type name you want, registering the prompt with a type of `'date'` will afford you IntelliSense when specifying the prompt options, thanks to TypeScript's [declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html).\n\n## Prompt\n\nTo change the date, simply use the left <kbd>&larr;</kbd> and right <kbd>&rarr;</kbd> arrow keys to move the cursor, and up <kbd>&uarr;</kbd> and down <kbd>&darr;</kbd> to change the value. You can also use modifier keys to determine by how much to increase or decrease the value:\n\n- &plusmn;**10**: Shift + Arrow (&#8679;&darr;)\n- &plusmn;**100**: Option/Alt + Shift + Arrow (&#8997;&#8679;&darr;)\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/haversnail/inquirer-date-prompt/master/examples/demo.gif\" alt=\"Demo\" width=\"480\">\n</p>\n\n## Options\n\n> **Note**: _allowed options written inside square brackets (`[]`) are optional. Others are required._\n\n`type`, `name`, `message` [, `default`, `filter`, `validate`, `transformer`, `locale`, `format`, `clearable`]\n\n### `default` (Date)\n\n- `default` is expected to be a [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance if used. If no default value is provided, the prompt will default to the current date and time.\n\n### `transformer` (Function)\n\n- In addition to the [default arguments](https://github.com/SBoudrias/Inquirer.js/blob/master/README.md#questions), the `transformer` function supports the following Boolean flags:\n  - `isFinal`: Indicates whether a final answer has been selected\n  - `isDirty`: Indicates whether the input has been modified by the user\n  - `isCleared`: Indicates whether the input has been cleared (if the `clearable` option has been enabled)\n\n### `locale` [<sup>1</sup>](#caveats) (String | Array\\<String\\>)\n\n- A specific [locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#parameters) or locales to use when formatting the date. If no locale is provided, it will default to the user's current locale.\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/haversnail/inquirer-date-prompt/master/examples/locale.gif\" alt=\"Demo\" width=\"480\">\n</p>\n\n### `format` (Intl.DateTimeFormatOptions)\n\n- A [`DateTimeFormatOptions`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#parameters) object for customizing the date format. By default, all editable parts default to `'numeric'`.\n\n### `clearable` (Boolean)\n\n- A Boolean value indicating whether the input can be cleared. If `true`, hitting <kbd>delete</kbd> or <kbd>backspace</kbd> will clear the prompt and set its current value to `null`. Pressing any other key before returning will restore the state to its previous value.\n\nSee the [`inquirer` README](https://github.com/SBoudrias/Inquirer.js/blob/master/README.md) for details on all other options.\n\n## Example\n\n```js\nasync function getTimestamp(date) {\n  const { timestamp } = await inquirer.prompt({\n    type: \"date\",\n    name: \"timestamp\",\n    message: \"When will the world end?\",\n    prefix: \" 🌎 \",\n    default: date,\n    filter: (d) => Math.floor(d.getTime() / 1000),\n    validate: (t) => t * 1000 > Date.now() + 86400000 || \"God I hope not!\",\n    transformer: (s) => chalk.bold.red(s),\n    locale: \"en-US\",\n    format: { month: \"short\", hour: undefined, minute: undefined },\n    clearable: true,\n  });\n  return timestamp;\n}\n```\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/haversnail/inquirer-date-prompt/master/examples/end.gif\" alt=\"Demo\" width=\"480\">\n</p>\n\n## Caveats\n\n1. Be aware that even though this plugin works with Node &ge; v12, specifying a locale other than `'en-US'` while running on any version less than 13.0.0 will fail silently. See the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#browser_compatibility) for more details.\n","readmeFilename":"README.md","homepage":"https://github.com/haversnail/inquirer-date-prompt","repository":{"type":"git","url":"git+https://github.com/haversnail/inquirer-date-prompt.git"},"bugs":{"url":"https://github.com/haversnail/inquirer-date-prompt/issues"}}