val-token

Validate coupons.

Usage no npm install needed!

<script type="module">
  import valToken from 'https://cdn.skypack.dev/val-token';
</script>

README

valToken

Module that verifies that a coupon code is valid and is not expired.

Installation

$ npm install val-token

Example

const valToken = require("./index");

const checkCoupon = valToken('123','123','September 5, 2014','October 1, 2014');
console.log(checkCoupon); // true...