Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@persian-tools/react-persian-tools

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@persian-tools/react-persian-tools

React wrapper component around persian tools

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

react-persian-tools

React wrapper component around persian tools

CI/CD codecov GitHub license PRs Welcome CodeFactor NPM Storybook GitHub contributors


Demo

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

alt text

Install

npm install --save react-persian-tools

Usage

import React, { Component } from 'react'

import PersianTools from 'react-persian-tools'

class Example extends Component {
  render() {
    return (
      <>
        <PersianTools.WordsToNumber>منفی سه هزارمین</PersianTools.WordsToNumber>
        <PersianTools.WordsToNumber fuzzy>یگصد و بنجاه هزار</PersianTools.WordsToNumber>
        <PersianTools.NumberToWords>500,443</PersianTools.NumberToWords>
        <PersianTools.NumberToWords ordinal>500,443</PersianTools.NumberToWords>
        <PersianTools.AddCommas>30000000</PersianTools.AddCommas>
        <PersianTools.RemoveCommas>30,000,000</PersianTools.RemoveCommas>
        <PersianTools.DigitsArToEn>٠١٢٣٤٥٦٧٨٩</PersianTools.DigitsArToEn>
        <PersianTools.DigitsArToFa>٠١٢٣٤٥٦٧٨٩</PersianTools.DigitsArToFa>
        <PersianTools.DigitsEnToFa>123۴۵۶</PersianTools.DigitsEnToFa>
        <PersianTools.DigitsFaToEn>123۴۵۶</PersianTools.DigitsFaToEn>
      </>
    )
  }
}

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 file for details.

Keywords

FAQs

Package last updated on 10 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc