var stringDirection = ;stringDirection; // 'ltr'stringDirection; // 'rtl'
patch() method a
getDirection method will be exposed in
;"Hello, world!"; // "ltr""سلام دنیا"; // "rtl"
String Direction works both in browser or NodeJS environment
Install via NPM
npm install string-direction
script tag to include the library
This library is influenced by string-direction Ruby library by Marc Busqué