Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/persian-tools/react-persian-tools
- Owner: persian-tools
- License: mit
- Created: 2020-10-11T12:10:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:38:44.000Z (about 1 year ago)
- Last Synced: 2024-03-15T07:49:17.112Z (9 months ago)
- Topics: 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
- Language: TypeScript
- Homepage: https://persian-tools.github.io/react-persian-tools/
- Size: 2.99 MB
- Stars: 32
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.