1.0.4 • Published 1 year ago

sanitise-fields v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm Release new version to NPMJS Create new GitHub Release

sanitise-fields

A small library for an sanitising input fields from dangerous inputs.

Install

NPM

npm i sanitise-fields

CDN

<script src="https://unpkg.com/sanitise-fields/dist/index.min.js"></script>

Usage

sanitise

Add the class sanitise to your input element

index.html

<input type="text" id="txtComment" class="sanitise">

index.js

import { sanitise } from 'sanitise-fields'

sanitise()
1.0.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

2 years ago