verify-tc
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Verify TC Number

This library can verify the Turkish citizenship number. verifyTC function returns a boolean value.

Example

const { verifyTC } = require('verify-tc');
// or
import { verifyTC } from 'verify-tc';

// Async/await
const isVerified = await verifyTC({
  name: 'Name',
  surname: 'Surname',
  tcNumber: 11111111111,
  birthYear: 2005,
});
console.log(isVerified);

// Then
verifyTC({
  name: 'Name',
  surname: 'Surname',
  tcNumber: 11111111111,
  birthYear: 2005,
}).then((isVerified) => {
  console.log(isVerified);
});

Package Sidebar

Install

npm i verify-tc

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

4.78 kB

Total Files

7

Last publish

Collaborators

  • 1bomi