# @vitspot/vit-registration-number

> quickly operate on registration numbers across vit

Latest version **1.0.1** (published 2020-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vitspot/vit-registration-number
pnpm add @vitspot/vit-registration-number
yarn add @vitspot/vit-registration-number
bun add @vitspot/vit-registration-number
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-23 |
| First published | 2020-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Yash Kumar Verma |
| Maintainers | pvsmounish, yashkumarverma |

## Links

- npm: https://www.npmjs.com/package/@vitspot/vit-registration-number
- Repository: https://github.com/YashKumarVerma/vit-registration-number
- Homepage: https://github.com/YashKumarVerma/vit-registration-number#readme
- Issues: https://github.com/YashKumarVerma/vit-registration-number/issues
- npm.io page: https://npm.io/package/@vitspot/vit-registration-number

## Recent versions

- 1.0.1 (latest) — 2020-12-23
- 1.0.0 — 2020-12-23

## README

# 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
```sh
# install the package
npm install @vitspot/vit-registration-number

```

Using in Code
```js
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.

---
_Source: https://npm.io/package/@vitspot/vit-registration-number · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
