This is a simple Turkish National Id Checking package which created for developers to use in their form elements or any spesific usage.
npm i turkish-id-checker
let { checkId, generateId } = require('turkish-id-checker')
// Parameter should be a String or a Number
checkId('15973515680') // Returns an Object with status and display keys in it.
checkId('15973515680').status // Returns true
checkId(15973515680).display // Returns 'This is a valid Turkish National ID'
generateId() // Returns a random Turkish National ID
Visit Live Demo
npm run test
npm run build
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Kaan Gökdemir - Author (@kaangokdemir) - kaangokdemir.com
ISC