2.3.7 • Published 2 years ago

@yek-plus/tck v2.3.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

TCK Lib V2

Installing

npm install @yek-plus/tck
yarn add @yek-plus/tck

Basic Usage

const Tck = require("@yek-plus/tck");
const tck = new Tck()
tck.methods.Check({
    tckn: Turkish Identification Number,
    ad: Fist Name,
    soyad: Last Name,
    dogumYili: Birth Year,
  })
  .then(console.log);

Setup

constructor

Inputs

propertytyperequireddefaultdescription
fetchFetchfalseFetch from node-fetch packagefetch function

update

Inputs

propertytyperequireddefaultdescription
optionsobjecttruenullcontractor fields object
options.fetchFetchfalseFetch from node-fetch packagefetch function

Methods

Check

Inputs

propertytyperequireddefaultdescription
tcknnumbertruenullTurkish Identification Number
adstringtruenullFirst Name
soyadstringtruenullLast Name
dogumYilinumbertruenullBirth Year

Response

propertytypedescription
statusbooleanShows method is return without error
dataobjectIf method return with error, it will be null
data.isValidbooleanShows result of method
errorerrorIf method return with error, it will shows error

Usage

const Tck = require("@yek-plus/tck");
const tck = new Tck()
tck.methods.Check({
    tckn: Turkish Identification Number,
    ad: Fist Name,
    soyad: Last Name,
    dogumYili: Birth Year,
  })
  .then(console.log);
2.3.7

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago