1.0.2 • Published 3 years ago
workflow-ma3-second-input v1.0.2
Creating an NPM package
To install run:
npm install silly-input
To use in your project, add a class of .silly-input to any HTML input you want to convert.
<input placeholder="First name" class="silly-input" />
Then in your JavaScript file import and call silly Input like this:
import sillyInput from "silly-input";
sillyInput();
*Note: You will need to use a bundler like Parcel or Webpack to import the package like this.