Skip to content
/ eic Public

Simple module for verification of Energy Identification Codes (EIC)

License

Notifications You must be signed in to change notification settings

sigod/eic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EIC

Simple module for verification of Energy Identification Codes (EIC).

Installation

npm install eic

API

verifyEIC(string)

EIC.verifyEIC('21Z000000000163R'); // true
EIC.verifyEIC('21z000000000163r'); // false

generateEICCheckDigit(string)

EIC.generateEICCheckDigit('21Z000000000163'); // 'R'
EIC.generateEICCheckDigit('21Z00000000016'); // undefined

License

MIT

About

Simple module for verification of Energy Identification Codes (EIC)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published