verify-bangla-digit
v1.0.2
Published
Javascript package for verifying Bangla digit
Downloads
2
Maintainers
Readme
verify-bangla-digit
Javascript package for verifying Bangla digit
Features
npm
Install
npm install --save verify-bangla-digit
Browser Install
For Production Script Tag
<script src="https://cdn.rawgit.com/Prosen-Ghosh/verify-bangla-digit/2e4108c3/verify-bangla-digit.js"></script>
For Development Script Tag
<script src="https://rawgit.com/Prosen-Ghosh/verify-bangla-digit/master/verify-bangla-digit.js"></script>
Development Dependencies
Package | Version | Dev --- |:---:|:---: chai | ^4.1.2 | ✖ node-readme | ^0.1.9 | ✖ mocha | ^3.5.3 | ✔
Usage
const verifyDigit = require('verify-bangla-digit');
verifyDigit("১২৩৪৫৬৭৮৯০");
//=> true
verifyDigit("");
//=> false
verifyDigit("১২৩৪৫৬৭৮৯০a");
//=> false
//<input type="text" value="১২" id="digit">
verifyDigit(document.getElementById('digit').value);
//=> true
Author
Prosen Ghosh [email protected]
License
- MIT : http://opensource.org/licenses/MIT