Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Make each validation method callable by itself #1

Closed
dhershman1 opened this issue Feb 5, 2018 · 0 comments
Closed

Make each validation method callable by itself #1

dhershman1 opened this issue Feb 5, 2018 · 0 comments
Assignees
Labels
Projects

Comments

@dhershman1
Copy link
Owner

dhershman1 commented Feb 5, 2018

The plan is to allow users to bring in and call validation methods they need/want

Example:
How it currently works

import simpleCard from 'simple-card';

simpleCard('4111111111111111'); // Validate single Card Number
simpleCard('333'); // Validate single CVN
simpleCard('1/20'); // Validate single date

Instead we should allow for:
Note The import from values are concepts/placeholders that may change on release

import validNumber from 'simple-card/number';
import validCVN from 'simple-card/cvn';
import validDate from 'simple-card/expire';

validNumber('4111111111111111');
validCVN('333');
validDate('1/20');
@dhershman1 dhershman1 self-assigned this Feb 5, 2018
@dhershman1 dhershman1 added this to To Do in v2.x.x via automation Feb 5, 2018
@dhershman1 dhershman1 moved this from To Do to Doing in v2.x.x Feb 21, 2018
v2.x.x automation moved this from Doing to Finished Feb 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
No open projects
v2.x.x
  
Finished
Development

No branches or pull requests

1 participant