@devmoath/ar-num-to-en-num
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.2 • Public • Published

    @devmoath/ar-num-to-en-num Node.js Package

    Convert Arabic numbers to English numbers

    Installation

    Install the plugin from npm:

    # Using npm
    npm install @devmoath/ar-num-to-en-num
    
    # Using Yarn
    yarn add @devmoath/ar-num-to-en-num

    Usage

    // es module import:
    import { convert } from '@devmoath/ar-num-to-en-num';
    
    // commonjs import:
    const convert = require('@devmoath/ar-num-to-en-num').convert;
    
    convert('test ١٢٣'); // test 123
    convert('كلمة ١٢٣'); // كلمة 123
    
    // if you pass non-string value the function will return false
    convert({}); // false
    convert([]); // false

    Install

    npm i @devmoath/ar-num-to-en-num

    DownloadsWeekly Downloads

    75

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    6.66 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar