🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

test-nino

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-nino - npm Package Compare versions

Comparing version

to
1.1.7

2

package.json
{
"name": "test-nino",
"version": "1.1.6",
"version": "1.1.7",
"sideEffects": false,

@@ -5,0 +5,0 @@ "description": "The fastest UK National Insurance number generator (nino). Generates a random valid UK NI number in accordance with NIM39110 guidelines on Gov.uk",

@@ -57,3 +57,3 @@ # test-nino

### incremental
This method is best if you want to ensure you don't generate a duplicate NINO and utilises a [JavaScript Generator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) to enumerate through all possible valid UK NI numbers `AA000000A-ZY999999D` (there are [14,940,000,000 in total](#how-many-valid-uk-national-insurance-numbers-are-there)).
This method is best if you want to ensure you don't generate a duplicate NINO and utilises a [JavaScript Generator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) to enumerate through all possible valid UK NI numbers `AA000000A-ZY999999D` (there are [1,492,000,000 in total](#how-many-valid-uk-national-insurance-numbers-are-there)).

@@ -81,7 +81,7 @@ The generator will enumerate on prefix, number and then suffix.

| package | function | ops/sec |
|----------------------------------------------------------------|----------|--------------------------|
| [fake-nino](https://www.npmjs.com/package/fake-nino) | generate | 3,027,256 ops/sec ±0.75% |
| [random_uk_nino](https://www.npmjs.com/package/random_uk_nino) | generate | 3,876,490 ops/sec ±0.35% |
| **test-nino** | random | 8,162,494 ops/sec ±0.39% |
| package | function | ops/sec |
|----------------------------------------------------------------|----------|-----------|
| [fake-nino](https://www.npmjs.com/package/fake-nino) | generate | 3,027,256 |
| [random_uk_nino](https://www.npmjs.com/package/random_uk_nino) | generate | 3,876,490 |
| **test-nino** | random | 8,162,494 |

@@ -127,2 +127,2 @@ > Benchmarks ran using [benchmark.js](https://www.npmjs.com/package/benchmark) on an i7 3.0Ghz with 16GB RAM, using Node 16.

373 (for the first two letters) x 10^6 (for the six numbers) x 4 (for the final letter) = **14,940,000,000** possible NINOs.
373 (for the first two letters) x 10^6 (for the six numbers) x 4 (for the final letter) = **1,492,000,000** possible NINOs.