Skip to content

cancng/verify-tc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify TC Number

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

# with yarn
yarn add verify-tc

# with npm
npm install verify-tc

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);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published