0.1.1 • Published 3 years ago

@open-source-uc/validate-uc-number v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

UC number validator

Build Status lint

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)) {
  // ...
}