Catalog npm
PACKAGE EXPLORERView in registry

1918js

npm

typescript validation library for polish identifiers: regon, nip, pesel

identifiersjavascriptnipnip validationnip validatorpeselpesel validationpesel validatorpolandpolishregonregon validationregon validatortypescriptvalidationvalidator
All keywords (17)
value object
Versions collected8
Direct dependencies13From release 0.0.9
Last observed20 Oct, 18:23 UTC

README

Current package documentation

1918js

what is this?

validation library for polish identifiers

features

  • validation utilities for polish identifiers: NIP, PESEL, REGON
  • no external dependencies
  • extensive testing (unit tests, property-based tests, mutation-tests)

how to use

import { validateRegon } from "1918js"

declare const someUnknownUserInput: unknown;

const result = validateRegon(someUnknownUserInput)

if(result.ok) {
  console.log("happy path :)")
  console.log("our value: ", result.value)
}

if(!result.ok) {
  console.log("you know what path this is :(")

  // error is accessed as a value, never thrown
  console.log("error code", result.error.code)
}

learn more

documentation

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 8

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.9Registry latest7 Sept 202613
0.0.86 Sept 202610
0.0.76 Sept 202610
0.0.61 Sept 202615
0.0.51 Sept 202615
0.0.41 Sept 202615
0.0.312 Aug 202610
0.0.212 Aug 202611

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
the-lack/1918js

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:23 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1dc12236f7a0e704c9fddb59fd8236f942ccba2955dd691b5c20d96c90a6937b