1.0.1 • Published 5 years ago

tarjetasube v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

TarjetaSube

The way to get started is to quit talking and begin doing. (Walt Disney)

What?

Node module in order to let you verify if a Tarjeta SUBE number is it valid or not.

Example

Install TarjetaSUBE module

$ npm i tarjetasube

Code your application.js

"use strict";

// the module
var tarjetaSUBE = require('tarjetasube');

// the cardnumber
var cardnumber = "6061268880223199";

// go go go!
if (tarjetaSUBE.isValid(cardnumber)) {
	console.log(`Yes! ${cardnumber} is a valid Tarjeta SUBE number.`);
} else {
	console.log(`Ooops... ${cardnumber} looks like an invalid Tarjeta SUBE number.`);
}
1.0.1

5 years ago

1.0.0

5 years ago

1.3.1

5 years ago