Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oliviernt/sv-number-generator

Small, dependency free lib that generates german SV-numbers for testing purposes
https://github.com/oliviernt/sv-number-generator

generator nodejs testing utility

Last synced: 13 days ago
JSON representation

Small, dependency free lib that generates german SV-numbers for testing purposes

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/oliviernt/sv-number-generator.svg?branch=master)](https://travis-ci.org/oliviernt/sv-number-generator)

# SV-Number Generator

This is a little util that allows to generate German SV-Numbers (also Rentenversicherungsnummer) for testing purposes.

## Installation

Run `npm install` or `yarn`

## Usage

```javascript
const generateSV = require('sv-number-generator');

const birthday = '190585'; // 19.05.1985

const svNumber = generateSV(birthday);

// svNumber -> 02190585A502
```
## Build

Run `npm build` or `yarn build`

## Tests

Run `npm test` or `yarn test`