New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@vitspot/vit-registration-number

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitspot/vit-registration-number

quickly operate on registration numbers across vit

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

vit-registration-number

Ever wanted to quickly validate and read data off a registration number in VIT? Then this package is for you. Here's a simple usage.

Usage

# install the package
npm install @vitspot/vit-registration-number

Using in Code

const RegistrationNumber = require("@vitspot/vit-registration-number")
const someNumber = new RegistrationNumber("19BCE2669")

const year = someNumber.getYear()
// => 19

const branch = someNumber.getBranch();
// => BCE

const index = someNumber.getIndex();
// => 2669

No need to worry about validation Strict type checking for all sections of the registration number. Will throw an error if the registration number is malformed, so that it's easy to check. Always wrap inside a try-catch block when validating numbers.

FAQs

Package last updated on 23 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts