Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ArabicReshaper = require('arabic-reshaper');
- var originalString = String.fromCharCode(0x0636, 0x0636);
- console.log(originalString);
- var newString = ArabicReshaper.convertArabic(originalString)
- console.log(newString); // should look the same
- console.log(newString.codePointAt(0).toString(16), newString.codePointAt(1).toString(16))
Advertisement
Add Comment
Please, Sign In to add comment