Skip to content

Finnish Business ID (Y-tunnus) validation and creation

License

Notifications You must be signed in to change notification settings

mharj/fi-business-id

Repository files navigation

fi-business-id

Finnish Business ID (Y-tunnus) validation and creation CI Maintainability Test Coverage

This module provides functions to validate and create Finnish Business IDs (Y-tunnus). A Finnish Business ID consists of seven digits, a hyphen, and a checksum digit (e.g., 1234567-1).

javascript/typescript module

console.log(isValidBusinessId('1572860-0'));

console.log(buildBusinessId('1572860'));

Browser Module

<html>
	<head></head>
	<body>
		<script type="module">
			import {buildBusinessId, isValidBusinessId} from 'https://unpkg.com/mharj-fi-business-id@latest/dist/index.mjs';
			console.log(isValidBusinessId('1572860-0'));
			console.log(buildBusinessId('1572860'));
		</script>
	</body>
</html>

About

Finnish Business ID (Y-tunnus) validation and creation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published