input-data-mask

1.0.11 • Public • Published

Masks the input field strings with stars, even can't see by inspecting dom and change input type from password to text.

get value by using callback function called "getVal"


Install npm i star-mask


Example:


import React from "react";

import InputFieldMak from "input-field-mask";

function App() {

const [inVal, setInVal] = React.useState("");

return (

<InputFieldMak getVal={(val)=>setInVal(val)}/>
); }

export default App;


Package Sidebar

Install

npm i input-data-mask

Weekly Downloads

1

Version

1.0.11

License

ISC

Unpacked Size

1.97 kB

Total Files

3

Last publish

Collaborators

  • raoknk99