Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

react-maskfy

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 2.0.0

favicon.ico

6

package.json
{
"name": "react-maskfy",
"version": "0.0.1",
"description": "A React library without a dependency... Very simple to install and use. With only 2kb (gzip) code, it's also well accepted on mobile devices",
"version": "2.0.0",
"description": "A React library without a dependency... Very simple to install and use. With only 1kb (gzip) code, IE Compatibility, it's also well accepted on mobile devices",
"main": "maskfy.js",

@@ -27,3 +27,3 @@ "scripts": {

},
"homepage": "https://github.com/figuarnieri/maskfy#readme"
"homepage": "https://figuarnieri.github.io/maskfy/"
}

@@ -1,18 +0,20 @@

# Maskfy - Input Mask Simple
A React library without a dependency... Very simple to install and use. With only 2kb (gzip) code, it's also well accepted on mobile devices
## Install
Install Maskfy
```jsx
# Maskfy (2.0.0) - Input Mask Simple
A React library without a dependency... Very simple to install and use. With only 1kb (gzip) code, IE Compatibility, it's also well accepted on mobile devices
## Install / Usage
Install npm Maskfy
```node
npm i react-maskfy
```
## Usage
### Import Component
```javascript
import Maskfy from './../../Components/Maskfy';
...
import Maskfy from 'react-maskfy';
```
### Usage Component
```javascript
<Maskfy mask={'(99) 9999-99999'}>
<input id="Phone" name="Phone" />
</Maskfy>
```
or
```javascript
<Maskfy mask={'(99) 9999-99999'}>

@@ -24,9 +26,23 @@ <TextField id="Phone" label="Phone" />

```javascript
<Maskfy mask={'999.999,99'} reverse={true} size={3}>
<Maskfy mask={'999.999.999,99'} reverse={true} minSize={3} defaultValue={'123'} letters={false} after={handleEvent}>
<input id="Money" name="Money" />
</Maskfy>
```
### mask
{String: undefined} **__(required)__ selector input**
### reverse
{Boolean: false} **reverse typing**
### minSize
{Number: undefined} **minimum digits**
### defaultValue
{String: undefined} **initial value**
### letters
{Boolean: false} **allowed letters**
### after
{Function: undefined} **after input event**
## Source
[Github](https://github.com/figuarnieri/maskfy) | [Vanilla npm](https://www.npmjs.com/package/maskfy) | [Example](https://figuarnieri.github.io/maskfy/) | [@figuarnieri](https://twitter.com/figuarnieri)
## License
The MIT License
Copyright 2017 © [Filipe Guarnieri](https://figuarnieri.github.io/)
Copyright 2018 © [Filipe Guarnieri](https://figuarnieri.github.io/)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc