greece-afm

Validation of Greek tax registration number (AFM)

Usage no npm install needed!

<script type="module">
  import greeceAfm from 'https://cdn.skypack.dev/greece-afm';
</script>

README

greece-afm Build Status Coverage Status npm

Validation of Greek tax registration number (AFM).

Έλεγχος εγκυρότητας ενός Α.Φ.Μ.

Installation

$ npm install greece-afm

Usage

To validate an AFM:

var validateAfm = require('greece-afm');

validateAfm('094429812'); // true
validateAfm('987654321'); // false

Thanks

Validation algorithm by a gist from @tdoumas

License

MIT