Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/persian-tools/react-persian-tools

React wrapper component around Persian tools
https://github.com/persian-tools/react-persian-tools

card-number code-melli convert-numbers convert-persian-number fuzzy-matching iban iranian-national-id numbet-to-words persian-characters persian-language remove-commas sheba verify-bank-number verify-national-id words-to-numbers

Last synced: about 1 month ago
JSON representation

React wrapper component around Persian tools

Awesome Lists containing this project

README

        





react-persian-tools


React wrapper component around persian tools

![CI/CD](https://github.com/persian-tools/react-persian-tools/workflows/Continuous%20Integration/badge.svg)
[![codecov](https://codecov.io/gh/persian-tools/react-persian-tools/branch/master/graph/badge.svg)](https://codecov.io/gh/persian-tools/react-persian-tools)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/persian-tools/react-persian-tools/blob/master/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-orange.svg)](https://github.com/persian-tools/react-persian-tools/compare)
[![CodeFactor](https://www.codefactor.io/repository/github/persian-tools/react-persian-tools/badge/master)](https://www.codefactor.io/repository/github/persian-tools/react-persian-tools/overview/master)
[![NPM](https://img.shields.io/npm/v/@persian-tools/react-persian-tools.svg)](https://www.npmjs.com/package/react-persian-tools)
[![Storybook](https://cdn.jsdelivr.net/gh/storybookjs/brand@master/badge/badge-storybook.svg)](https://persian-tools.github.io/react-persian-tools/)
[![GitHub contributors](https://img.shields.io/github/contributors/persian-tools/react-persian-tools.svg)](https://GitHub.com/persian-tools/react-persian-tools/contributors/)



## Demo

https://persian-tools.github.io/react-persian-tools/

![alt text](./images/demo.gif "Preview")

## Install

```bash
npm install --save react-persian-tools
```

## Usage

```tsx
import React, { Component } from 'react'

import PersianTools from 'react-persian-tools'

class Example extends Component {
render() {
return (
<>
منفی سه هزارمین
یگصد و بنجاه هزار
500,443
500,443
30000000
30,000,000
٠١٢٣٤٥٦٧٨٩
٠١٢٣٤٥٦٧٨٩
123۴۵۶
123۴۵۶
>
)
}
}
```

## Contributing

Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.

## License

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/persian-tools/react-persian-tools/blob/master/LICENSE) file for details.