Reshapes Arabic words to work in non-supported environments.
Last updated 3 years ago by basharh .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @basharh/arabic-reshaper 
SYNC missed versions from official npm registry.


Circle CI Codecov Codacy NPM VersionEye

Reshapes Arabic words to work in non-supported environments and with custom web fonts.

Meant to be used in the browser, but can also be used in server-side environments for things such as generating PDF files. This script mainly converts characters in the Arabic block to Arabic Presentation Forms-A/B — something that rendering engines should do by themselves but sometimes fail to do so. This solves the issue of disconnected Arabic letters which can be seen while using a custom font in almost all platforms (Web, Android, iOS, ...)

For more details, check these articles on Wikipedia:

This script is inspired by the following projects:


npm i --save arabic-reshaper


var ArabicReshaper = require('arabic-reshaper');
document.write(ArabicReshaper.convertArabic('السلام عليكم')); // outputs ﺍﻟﺴﻼﻡ ﻋﻠﻴﻜﻢ

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

1 Versions

  • 1.1.0                                ...           3 years ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (8)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |