0.2.4 • Published 4 years ago
sehir v0.2.4
Sehir
A function that returns unified Turkish city names. Some cities have multiple names and this component can help you to get the unique name from any city name given. And also helps deal with the classic "I" vs "İ" problem.
Installation
NPM
npm install sehirYARN
yarn add sehirUsage
import { sehir } from 'sehir';
sehir("içel") // returns mersin
sehir("antakya") // returns hatay
sehir("izmit") // returns kocaeli
sehir("koCaeli") // returns kocaeli
sehir("aNTaLyA") // returns antalya