Skip to content
JS
Package

personnummer.js

JavaScript script to validate and parse Swedish personal identity numbers and corporate identity numbers. Written in TypeScript and includes types.

v3.0.0, 14 Sept 2022MITCommonJSTypes: BundledTypeScript toolingSchema validation
$ npm install personnummer.js

Key numbers

As of 25 Sept 2026
Weekly downloads
4.1k
-35% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 years ago
v3.0.0
GitHub stars
10
3 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02.5k5k7.5k10kSept 2025Mar 2026Sept 2026High 9k (24 Mar 2026)Low 691 (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

4,093 downloads last week, 16,369 in the last month. The 12-month change of -35% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.0.0, 14 Sept 20224 years ago
First published
-
Last push to GitHub
9 Jan 20231,355 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
7

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
41 kB
Dependencies (0)
None
npm install personnummer.js
  • jsDelivrhttps://cdn.jsdelivr.net/npm/personnummer.js@3.0.0/
  • unpkghttps://unpkg.com/personnummer.js@3.0.0/
  • esm.shhttps://esm.sh/personnummer.js@3.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
runtypes186.3k-1 month agoESM + CommonJS-
@standard-schema/spec80.7m-9 months agoESM + CommonJS-
@inixiative/json-rules21.6k-4 days agoESM + CommonJS-
@zod/mini14.9k-11 days agoESM + CommonJS-
@c15t/schema116.6k-1 month agoESM + CommonJS-
effect26.3m-15 days agoESM + CommonJS-
json-schema-to-ts24.9m-2 years agoESM + CommonJS-
io-ts2m-1 year agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 4093 < 10000.