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

react-maskfy

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-maskfy

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

  • 2.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
65
increased by85.71%
Maintainers
1
Weekly downloads
 
Created
Source

Maskfy (2.0.5) - 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

npm i react-maskfy

Import Component

import Maskfy from 'react-maskfy';

Usage Component

<Maskfy mask={'(99) 9999-99999'}>
  <input id="Phone" name="Phone" />
</Maskfy>

or

<Maskfy mask={'(99) 9999-99999'}>
  <TextField id="Phone" label="Phone" />
</Maskfy>

Component (props)

<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 | Vanilla npm | Example | @figuarnieri

License

The MIT License Copyright 2018 © Filipe Guarnieri

Keywords

FAQs

Package last updated on 17 Jan 2019

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