Skip to content
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist move examle to dist and refactor dist files Jul 2, 2019
src Update index.js Jul 6, 2019
.editorconfig editorconfig Jul 2, 2019
.gitignore gitignore Jul 2, 2019
LICENSE Initial commit Jun 27, 2018 Update Jul 28, 2019
image.jpg Add files via upload Jul 17, 2018
package-lock.json webpack !! Jul 2, 2019
package.json webpack !! Jul 2, 2019
webpack.config.js webpack !! Jul 2, 2019

Filter Input



Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...

FilterInput.min.js File Size FilterInput.min.js Validation Code

Getting started

Add the following line to your .html file:

<script src=""></script>

or download the minified file

or use:


This package available in the npmjs repository (filterinput), so you can easily install it with:

npm i filterinput


  • Fast
  • Compact
  • No dependencies
  • Easy using Filters

Supported Tags

currently , only work on <input> tag.

  • input
  • textarea
  • select


Argument Name Goal
data-filter Set type of Filter for a tag
data-filter-lang Restrict allowed languages (soon)

Data Filters

  • Decimal
  • !Decimal (a decimal , not empty)
  • Integer
  • !Integer (a integer , not empty)
  • String (any character , no number)
  • !String (a string , not empty)
  • Alphabet (english,farsi:persian,arabic,china,...)
  • !Alphabet (english,farsi:persian,arabic,china,...) not empty!
  • Alphabet0 (may be have number characters)
  • !Alphabet0 (may be have number characters) not empty!
  • Any (any char or empty)
  • !Any (any char , not empty)

Data Filter Languages

  • english
  • persian
  • arabic
  • all

You can discuss or send a request at here.


To view the full details, run the example .html file.


Decimal :
<input data-filter="decimal" value="5.64">
Integer :
<input data-filter="integer" value="91">


soon will be complete.

You can choose multiple languages. Separate them with ,.


soon will be complete.


npm run dev
npm run build # build the production files


FilterInput is licensed under the GNU General Public License.

You can’t perform that action at this time.