Node.js module for reshaping Right-To-Left (Arabic/Persian) charators in string
npm install arabic-persian-reshaperjavascript
const reshaper = require('arabic-persian-reshaper');
reshaper.PersianShaper.convertArabic('ففف ف') // will reshape each charactor based on their position using Persian positions
reshaper.ArabicShaper.convertArabic('ففف ف') // will reshape each charactor based on their position using Arabic positions
``Special thanks to @alex-clay to add support for arabic charactors!(I don't know it's missing)