Catalog npm
Back to packageRELEASE DETAILS

0.0.8

npm

1918js

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

identifiersjavascriptnipnip validationnip validatorpeselpesel validationpesel validatorpolandpolishregonregon validationregon validatortypescriptvalidationvalidator
All keywords (17)
value object
Published6 Sept 2026
Direct dependencies10
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 10

Native requirements
10 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
tsdown
Environment
{
  "local_name": "tsdown",
  "alias": false,
  "peer_metadata": null
}
0.22.14development
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
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
@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": "ed85dc6f8c3c7d7393381770eb0d117a9faefb28",
  "tarball": "https://registry.npmjs.org/1918js/-/1918js-0.0.8.tgz",
  "fileCount": 5,
  "integrity": "sha512-fnUDmkUFM5CtIq1GHrZdo3FjDgTmaWA30++pjYjwardzylQ/iF4JSuBZ27x8rcUPbdFK75mGRI9LfF3dgQNQPw==",
  "signatures": [
    {
      "sig": "MEYCIQCtJ9bxIIoEP5+qBwD/NY99tVeH/H6Dw8ZinM4jSO1WpQIhAKPMbWkjZF/w743tZ3LyQkWtNkwdf8XRW0dsirTzYxVP",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 23183
}

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:a11c82ff4cd8b8d6d490a71de342b53df1627cd36c710bc0ba72de3f41102bd4

Other collected versions

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