@open-source-uc/validate-uc-number
v0.1.1
Published
Universal Javascript module to validate UC alumni identifier numbers.
Downloads
22
Readme
UC number validator
Universal Javascript module to validate UC alumni identifier numbers.
Compatible with Node.js, React-Native and browser environments.
Getting started
Install this module with:
# with yarn:
yarn add @open-source-uc/validate-uc-number
# with npm:
npm install --save @open-source-uc/validate-uc-number
Node.js and browser (with webpack) usage:
'use strict';
const validate = require('@open-source-uc/validate-uc-number');
// With strings
if (validate('1263476J')) {
// ...
}
// With numbers
if (validate(13546212)) {
// ...
}