npm.io
1.0.9 • Published yesterday

nit-verifier

Licence
MIT
Version
1.0.9
Deps
0
Size
3 kB
Vulns
0
Weekly
0

NIT Verifier

npm version 10x faster 10x smaller

Blazing fast, ultra-light, minimal, dependency-free, tree-shakeable, battle-tested, types included, reliable, Colombian NIT verifier.

npm i nit-verifier

Usage

getVerificationDigit("860.069.804")
// 2

Check the tests for more uses cases.

Verification algorithm

It uses the undocumented DIAN's module-11 algorithm to generate the verification digit for any given NIT.

Keywords