From 46e43f4bde4a35785b4997b81e86cd19f046b69b Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 21 Dec 2021 16:52:28 +0100 Subject: Commit --- src/node_modules/chance/docs/finance/exp_month.md | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/node_modules/chance/docs/finance/exp_month.md (limited to 'src/node_modules/chance/docs/finance/exp_month.md') diff --git a/src/node_modules/chance/docs/finance/exp_month.md b/src/node_modules/chance/docs/finance/exp_month.md new file mode 100644 index 0000000..b77ad1e --- /dev/null +++ b/src/node_modules/chance/docs/finance/exp_month.md @@ -0,0 +1,28 @@ +# exp_month + +```js +// usage +chance.exp_month() +chance.exp_month({future: true}) +``` + +Generate a random credit card expiration month. + +```js +chance.exp_month(); +=> '01' +``` + +Optionally specify that it must be a later month than the current month. + +```js +chance.exp_month({future: true}); +=> '10' +``` + +So if called in June, this would return a random month from July - Dec. If +called in October, would return November or December. + +This because many credit card sandboxes require an expiration date later +than the current date so it's necessary when generating an expiration with the +current year to generate a month later than the current month. -- cgit