Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unreal4u/rutverifier-js
A pure javascript implementation of rutverifier
https://github.com/unreal4u/rutverifier-js
Last synced: about 2 months ago
JSON representation
A pure javascript implementation of rutverifier
- Host: GitHub
- URL: https://github.com/unreal4u/rutverifier-js
- Owner: unreal4u
- Created: 2014-03-21T23:45:35.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-22T00:37:28.000Z (almost 11 years ago)
- Last Synced: 2024-10-12T05:09:20.634Z (3 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/unreal4u/rutverifier-js.png?branch=master)](https://travis-ci.org/unreal4u/rutverifier-js)
rutverifier-js
======Credits
--------This class is made by unreal4u (Camilo Sperberg). [unreal4u.com](http://unreal4u.com/).
About this class
--------* Can be used to verify chilean RUT (Rol único tributario) or RUN (Rol único nacional). (Difference [spanish])
* Is a pure JavaScript implementation. Will return true or false depending on whether the given RUT is valid or not.
* @TODO Will also format the RUT/RUN into the correct format.Basic usage
----------<script type="text/javascript" src="dist/rutverifier.min.js">
if (rutVerification('30.686.957-4')) {
console.log('RUT is valid');
} else {
console.log('RUT is not valid');
}
</script>
* Congratulations! That's all you've had to do.Developing
----------In order to develop, you'll better off installing [Node.js](http://nodejs.org) in order to run the automated tests and other stuff as well.
Then execute the following at the root of the project:
npm installIn order to do the JavaScript testing and validation, execute the following at
the project's root dir:
gruntRecommended is to install grunt as a global dependency:
npm install -g grunt-cliPending
---------
* Improvements on formatting RUT
* PHP class that can read out the minified version of this class
* Submit to packagist in order to add it as an dependency of unreal4u/rutverifierVersion History
----------* 1.0.0 :
* Initial versionContact the author
-------* Twitter: [@unreal4u](http://twitter.com/unreal4u)
* Website: [http://unreal4u.com/](http://unreal4u.com/)
* Github: [http://www.github.com/unreal4u](http://www.github.com/unreal4u)