Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coupon-code

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coupon-code - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc