Skip to content

webdeveric/validation-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

validation-algorithms

Node.js CI Release

Install

pnpm add validation-algorithms

npm install validation-algorithms --save

yarn add validation-algorithms

Algorithms

import { luhn } from 'validation-algorithms/luhn';

if (luhn('4000000000001000')) {
  // passed validation
}

Benchmarks

Run pnpm bench to run the benchmarks.

image