sanitise-fields

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i sanitise-fields

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

5.82 kB

Total Files

13

Last publish

Collaborators

  • scudderkpls