1.0.2 • Published 3 years ago

rtl-checker v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

What is rlt-checker ?

To check if the language uses right to left text writing system.

Installation

npm i rlt-checker

or

yarn add rlt-checker

Then...

import { isRTL } from 'rlt-checker';

console.log(isRTL('ar')); //true

Options

rlt-checker contains 4 functions:

  • isRTL(langCode:string) - langCode is required.
  • listRTLLangCodes()
  • listRTLLanguages()
  • listRTLLangCodesAndCountries()

Example

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago