faker-se

Get information about a user from merinfo.

Usage no npm install needed!

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

README

faker-se

Get information about a user from merinfo.

usage:

'use strict'

const { basedOnPNR } = require('faker-se')

basedOnPNR('198601010050')
  .then(({ name = '', address = { street: '', postal: '', region: '' }, phone = '', email = '' } = {}) => {
    // handle person
  })