pregx
pregx copied to clipboard
how on earth do I call the functions?
after I include the pregx.min.js I call getCreditCardNumber("test2348-2342-2342-2342");
but the function is undefined
I really wish there was an es5 version of this. I cannot get the es6 to work. I am trying to use pregx.js in the browser because it would not work on node.js v8, as soon as I call pregx from a nodejs script, it will error out with the import statements.
I don't know why I am having such problem with pregx. All my other modules I installed from npm did not have such issues.
<script type="text/javascript" src="pregx.min.js"></script>
thanks