se-orgnr-generator

Supersimple dependency-free library for generation Swedish organization numbers with TypeScript bindings

Usage no npm install needed!

<script type="module">
  import seOrgnrGenerator from 'https://cdn.skypack.dev/se-orgnr-generator';
</script>

README

Version Count License

se-orgnr-generator

Supersimple dependency-free library for generation Swedish organization numbers with TypeScript bindings.

Install

yarn install se-orgnr-generator

or

npm install se-orgnr-generator

Example

import generateOrganizationNumber from 'se-orgnr-generator';

const organizationNumber = generateOrganizationNumber();

Validation

This library is tested with among other tests by generating 100 000 organization numbers that are validated against se-orgnr-validator