Skip to content
organisationsnummerPublic

About

Validate Swedish organization numbers.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

2 watching

Forks

Repository files navigation

Organisationsnummer

Test

Validate Swedish organization numbers.

Follows version 1.1 of the specification.

Installation

The package is published on Maven Central.

Maven:

<dependency>
  <groupId>dev.organisationsnummer</groupId>
  <artifactId>organisationsnummer</artifactId>
  <version>1.2.2</version>
</dependency>

Gradle:

dependencies {
    implementation "dev.organisationsnummer:organisationsnummer:1.2.2"
}

Example

import dev.organisationsnummer.*;

Organisationsnummer.valid("202100-5489");
//=> true

See OrganisationsnummerTest.java for more examples.

In memoriam

Fredrik "Frozzare" Forsmo (1991-2026) was the initiator, co-founder and a core contributor of the organisationsnummer project. This library carries his work. He is missed.

License

MIT

About

Validate Swedish organization numbers.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages