2017 © Pedro PelĂĄez
 

library rutverifier-js

Javascript version of unreal4u/rutverifier

image

unreal4u/rutverifier-js

Javascript version of unreal4u/rutverifier

  • Saturday, March 22, 2014
  • by unreal4u
  • Repository
  • 1 Watchers
  • 0 Stars
  • 77 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

rutverifier-js

Credits

This class is made by unreal4u (Camilo Sperberg). unreal4u.com., (*2)

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 in order to run the automated tests and other stuff as well., (*3)

Then execute the following at the root of the project:, (*4)

npm install

In order to do the JavaScript testing and validation, execute the following at the project's root dir:, (*5)

grunt

Recommended is to install grunt as a global dependency:, (*6)

npm install -g grunt-cli

Pending

  • 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/rutverifier

Version History

  • 1.0.0 :
    • Initial version

Contact the author

The Versions

22/03 2014

dev-master

9999999-dev

Javascript version of unreal4u/rutverifier

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

run rut chile rutverifier carnet de identidad cedula de identidad

22/03 2014

v1.0.1

1.0.1.0

Javascript version of unreal4u/rutverifier

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

run rut chile rutverifier carnet de identidad cedula de identidad