Installations
npm install @types/react-currency-format
Developer Guide
Typescript
Yes
Module System
N/A
Score
80
Supply Chain
94.3
Quality
75.4
Maintenance
100
Vulnerability
100
License
Contributors
Languages
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
DefinitelyTyped
Download Statistics
Total Downloads
1,035,395
Last Day
1,121
Last Week
5,112
Last Month
26,033
Last Year
385,148
GitHub Statistics
49,128 Stars
88,655 Commits
30,295 Forks
640 Watching
5 Branches
9,978 Contributors
Package Meta Information
Latest Version
1.0.4
Package Id
@types/react-currency-format@1.0.4
Unpacked Size
7.04 kB
Size
2.27 kB
File Count
5
Publised On
06 Dec 2023
Total Downloads
Cumulative downloads
Total Downloads
1,035,395
Last day
-19%
1,121
Compared to previous day
Last week
-30.4%
5,112
Compared to previous week
Last month
2.4%
26,033
Compared to previous month
Last year
-2.2%
385,148
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Installation
npm install --save @types/react-currency-format
Summary
This package contains type definitions for react-currency-format (https://github.com/mohitgupta8888/react-currency-format#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-currency-format.
index.d.ts
1import { Component, ComponentType, HTMLAttributes, InputHTMLAttributes, JSX } from "react"; 2 3declare namespace CurrencyFormat { 4 /** 5 * Available input type attributes which the component supports. 6 */ 7 type InputType = "text" | "tel"; 8 9 /** 10 * A value object containing the formatted value, the original value and the float value. 11 * @see {@link https://github.com/mohitgupta8888/react-currency-format#values-object} 12 */ 13 interface Values { 14 formattedValue: string; 15 value: string; 16 floatValue: number; 17 } 18 19 // The component accepts all the props which can be given to a input or span based on displayType selected. 20 type DisplayTypeInput = InputHTMLAttributes<HTMLInputElement> & { 21 displayType?: "input"; 22 customInput?: ComponentType<any>; 23 }; 24 25 type DisplayTypeText = HTMLAttributes<HTMLSpanElement> & { 26 displayType?: "text"; 27 customInput?: never; 28 }; 29 30 /** 31 * Props accepted by the component. 32 * @see {@link https://github.com/mohitgupta8888/react-currency-format#props} 33 */ 34 type StrictProps = 35 & Partial<{ 36 thousandSeparator: string | boolean; 37 thousandSpacing: "2" | "2s" | "3" | "4"; 38 decimalSeparator: string; 39 decimalScale: number; 40 fixedDecimalScale: boolean; 41 allowNegative: boolean; 42 prefix: string; 43 suffix: string; 44 value: number | string | null; 45 isNumericString: boolean; 46 type: InputType; 47 format: string | ((unformatedInput: string) => string); 48 removeFormatting: (formattedValue: string) => string; 49 mask: string | string[]; 50 onValueChange: (values: Values) => void; 51 isAllowed: (values: Values) => boolean; 52 renderText: (formattedValue: string) => JSX.Element; 53 }> 54 & (DisplayTypeText | DisplayTypeInput); 55 56 /** 57 * Props accepted by the component and any other prop of the customInput. 58 */ 59 type Props = StrictProps & { 60 [key: string]: unknown; 61 }; 62} 63 64declare class CurrencyFormat extends Component<CurrencyFormat.Props> {} 65 66export = CurrencyFormat; 67
Additional Details
- Last updated: Wed, 06 Dec 2023 06:08:17 GMT
- Dependencies: @types/react
Credits
These definitions were written by Guilherme Samuel.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
Found 26/30 approved changesets -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:5
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:12
- Info: 20 out of 20 GitHub-owned GitHubAction dependencies pinned
- Info: 8 out of 8 third-party GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/UpdateCodeowners.yml:19
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ghostbuster.yml:20
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/support-window.yml:22
- Info: topLevel 'contents' permission set to 'read': .github/workflows/CI.yml:16
- Info: topLevel 'contents' permission set to 'read': .github/workflows/UpdateCodeowners.yml:14
- Warn: no topLevel permission defined: .github/workflows/format-and-commit.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/ghostbuster.yml:15
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lint-md.yml:7
- Warn: no topLevel permission defined: .github/workflows/pnpm-cache.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/support-window.yml:17
- Warn: no topLevel permission defined: .github/workflows/watchdog-publisher.yml:1
- Warn: no topLevel permission defined: .github/workflows/watchdog-typescript-bot.yml:1
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 28 are checked with a SAST tool
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
6.9
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @types/react-currency-format
@types/react-currency-formatter
TypeScript definitions for react-currency-formatter
react-format-kit
A TypeScript-based React component for formatting various data types such as dates, numbers, currencies and units with support for multiple formats and localization.
@ryniaubenpm2/voluptatem-architecto-praesentium
A library of React components to render input fields that simplify displaying formatted numbers such as currency or telephone numbers.