bsn-js 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
bsn-js can be used to generate a test BSN (burger service nummer) or validate an existing BSN
|
|
7
7
|
|
|
8
|
+
works for JavaScript and TypeScript (type definitions included)
|
|
9
|
+
|
|
8
10
|
## installation
|
|
9
11
|
|
|
10
12
|
`npm install bsn-js`
|
|
@@ -27,7 +29,7 @@ or
|
|
|
27
29
|
|
|
28
30
|
pass the BSN (string) to the function and it will return `true` or `false`
|
|
29
31
|
|
|
30
|
-
example: `const validBSN = isValidBSN('12312312')
|
|
32
|
+
example: `const validBSN = isValidBSN('12312312') # false`
|
|
31
33
|
|
|
32
34
|
<br>
|
|
33
35
|
|
|
@@ -45,16 +47,16 @@ the Dutch authority has reserved BSNs starting with 0000 and 99999 for testing
|
|
|
45
47
|
|
|
46
48
|
the generetated BSN will start with 99999 by default
|
|
47
49
|
|
|
48
|
-
`const bsn = generateBSN()
|
|
50
|
+
`const bsn = generateBSN() # 999999400`
|
|
49
51
|
|
|
50
52
|
when the function generateBSN is given true as argument, it will return a BSN starting with 0000
|
|
51
53
|
|
|
52
|
-
`const bsn = generateBSN(true)
|
|
54
|
+
`const bsn = generateBSN(true) # 000078840`
|
|
53
55
|
|
|
54
56
|
<br>
|
|
55
57
|
|
|
56
58
|
## information BSN
|
|
57
59
|
|
|
58
|
-
[
|
|
60
|
+
[official docs](https://www.government.nl/topics/personal-data/citizen-service-number-bsn)
|
|
59
61
|
|
|
60
62
|
[11 check](https://en.wikipedia.org/wiki/Check_digit)
|