fix-arabic-numbers
Replace arabic numbers with engilsh ones.
How to use
Simply pass a String, Object or an Array.
var fixArabicNumbers = ; ; // return '1234567890_%' ; // return ['1', '2', 'test 3', 'تجربة 4'] ; // return {test: '1234'}
How to use with Expressjs
You can use this module as a connect middleware to fix req.body
and req.query
by using fixArabicNumbers.connect
middleware
var express = ;var fixArabicNumbers = ; var app = ; app;app; // use connect middleware after using body-parser.app; app
req.params
How to fix Expressjs req.params
are processed by express router on requrst. to fix req.params
you could use fixArabicNumbers.params
middleware
var express = ;var fixArabicNumbers = ; var app = ; app