coupon-code
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "coupon-code", | ||
"description": "An implementation of Perl's Algorithm::CouponCode for NodeJS.", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name":"Andrew Chilton", |
An implementation of Perl's [Algorithm::CouponCode][couponcode] for NodeJS. Thanks to [Grant][grant] for the | ||
inspiration. :) | ||
Note: this package is considered stable, hence it seems not much is happening, however all bugs get fixed | ||
and currently no new features are planned. It is done. | ||
# Synopsis # | ||
@@ -41,2 +44,10 @@ | ||
=> '' | ||
// validate a code with 4 parts | ||
cc.validate('U5H9-HKDH-8RNX-1EX7', { parts : 4 }); | ||
=> U5H9-HKDH-8RNX-1EX7 | ||
// validate a code with partLen of 6 | ||
cc.validate('WYLKQM-U35V40-9N84DA', { partLen : 6 }); | ||
=> WYLKQM-U35V40-9N84DA | ||
``` | ||
@@ -43,0 +54,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19834
128