JSPM

node-luhn

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 911
  • Score
    100M100P100Q98681F
  • License MIT

A Luhn (mod 10) algorithm module for credit card number validation.

Package Exports

  • node-luhn

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-luhn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-luhn

NPM version build status Test coverage js-standard-style

A Luhn (mod 10) algorithm module for credit card number validation.

Install

$ npm install --save node-luhn

or:

$ component install chrisbuttery/luhn

Usage

var isLuhn = require('node-luhn')

isLuhn('4111111111111111')
//=> true

License

MIT © Chris Buttery