@open-source-uc/validate-uc-number

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 1.0.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i @open-source-uc/validate-uc-number

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

6.02 kB

Total Files

7

Last publish

Collaborators

  • fardust
  • agucova