sehir
v0.2.4
Published
A function that returns unified Turkish city names
Downloads
11
Maintainers
Readme
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 sehir
YARN
yarn add sehir
Usage
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