npm.io
1.0.14 • Published 3 years ago

input-field-mask

Licence
ISC
Version
1.0.14
Deps
0
Size
2 kB
Vulns
0
Weekly
0

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 input-field-mask

Example:


import React from "react";

import InputFieldMask from "input-field-mask";

function App() {

  const [inVal, setInVal] = React.useState("");
  
  return (
    <div className="App">
      <InputFieldMask getVal={(val)=>setInVal(val)}/>
    </div>
  );
}

export default App;

Keywords