Catalog npm
Back to packageRELEASE DETAILS

0.0.5

npm

1918js

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

identifiersjavascriptnipnip validationnip validatorpeselpesel validationpesel validatorpolandpolishregonregon validationregon validatortypescriptvalidationvalidator
All keywords (17)
value object
Published1 Sept 2026
Direct dependencies15
Transitive dependenciesNot calculated

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.

Declared dependencies 15

Native requirements
15 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
1918js
Environment
{
  "local_name": "1918js",
  "alias": false,
  "peer_metadata": null
}
0.0.3development
tsdown
Environment
{
  "local_name": "tsdown",
  "alias": false,
  "peer_metadata": null
}
0.22.14development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
4.1.10development
vitepress
Environment
{
  "local_name": "vitepress",
  "alias": false,
  "peer_metadata": null
}
2.0.0-alpha.19development
@types/bun
Environment
{
  "local_name": "@types/bun",
  "alias": false,
  "peer_metadata": null
}
1.3.14development
@vitest/ui
Environment
{
  "local_name": "@vitest/ui",
  "alias": false,
  "peer_metadata": null
}
4.1.10development
fast-check
Environment
{
  "local_name": "fast-check",
  "alias": false,
  "peer_metadata": null
}
4.9.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
7.0.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
26.1.2development
@fast-check/vitest
Environment
{
  "local_name": "@fast-check/vitest",
  "alias": false,
  "peer_metadata": null
}
0.4.1development
@vitest/coverage-v8
Environment
{
  "local_name": "@vitest/coverage-v8",
  "alias": false,
  "peer_metadata": null
}
4.1.10development
@stryker-mutator/core
Environment
{
  "local_name": "@stryker-mutator/core",
  "alias": false,
  "peer_metadata": null
}
10.0.0development
stryker-mutator-bun-runner
Environment
{
  "local_name": "stryker-mutator-bun-runner",
  "alias": false,
  "peer_metadata": null
}
0.4.0development
vitepress-plugin-group-icons
Environment
{
  "local_name": "vitepress-plugin-group-icons",
  "alias": false,
  "peer_metadata": null
}
1.7.6development
@stryker-mutator/vitest-runner
Environment
{
  "local_name": "@stryker-mutator/vitest-runner",
  "alias": false,
  "peer_metadata": null
}
9.6.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "3fdbfd19ae15d04c2278b6dbe1e462167be146f3",
  "tarball": "https://registry.npmjs.org/1918js/-/1918js-0.0.5.tgz",
  "fileCount": 5,
  "integrity": "sha512-rldpx7OmnCGnKkx8RgFHqY1CzTftGkTxOSA5Hu1EI7c3m4oiY/BmFlVknE6tCSf6niesqKgBGX5Szp6WlaSuAg==",
  "signatures": [
    {
      "sig": "MEYCIQDP5/QepAS86bXd+0iiamth59mEYcRsGKioJQePVmJf7QIhAKsn6Gw6mdfBEL2boywCQFN6bQeInDnfzIXxcAX113vt",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 15727
}

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_version:1e8f67a0b5f61ff4fa4f78b46022469b4d439c01c7f48372de0ec7153d2cafd2

Other collected versions

0.0.97 Sept0.0.86 Sept0.0.76 Sept0.0.61 Sept0.0.41 Sept0.0.312 AugView all collected versions →