{"id":22334957,"url":"https://github.com/ladutsko/isbn-core","last_synced_at":"2025-07-29T21:31:43.234Z","repository":{"id":10269933,"uuid":"12382973","full_name":"ladutsko/isbn-core","owner":"ladutsko","description":"ISBN core","archived":false,"fork":false,"pushed_at":"2024-07-06T08:38:07.000Z","size":235,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-06T09:31:19.263Z","etag":null,"topics":["isbn","osgi"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ladutsko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2013-08-26T15:41:52.000Z","updated_at":"2024-07-06T08:38:10.000Z","dependencies_parsed_at":"2023-01-11T20:16:21.875Z","dependency_job_id":"fb345256-e5e8-4217-9892-68d847e2b9c8","html_url":"https://github.com/ladutsko/isbn-core","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladutsko%2Fisbn-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladutsko%2Fisbn-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladutsko%2Fisbn-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladutsko%2Fisbn-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ladutsko","download_url":"https://codeload.github.com/ladutsko/isbn-core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046852,"owners_count":17861109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["isbn","osgi"],"created_at":"2024-12-04T05:11:00.799Z","updated_at":"2025-07-29T21:31:43.216Z","avatar_url":"https://github.com/ladutsko.png","language":"Java","funding_links":[],"categories":["项目","Projects"],"sub_categories":["杂项","Miscellaneous"],"readme":"# ISBN core ![Main CI](https://github.com/ladutsko/isbn-core/actions/workflows/main.yml/badge.svg) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.ladutsko/isbn-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.ladutsko/isbn-core) [![javadoc](https://javadoc.io/badge2/com.github.ladutsko/isbn-core/javadoc.svg)](https://javadoc.io/doc/com.github.ladutsko/isbn-core)\n\n`ISBN core` is a small library that contains a representation object of ISBN-10 and ISBN-13 and\ntools to parse, validate and format one.\n \n* Java 1.8+\n* OSGi compatible\n* GraalVM compatible\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.ladutsko\u003c/groupId\u003e\n    \u003cartifactId\u003eisbn-core\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```groovy\nimplementation 'com.github.ladutsko:isbn-core:2.0.0'\n```\n\n## Quick start\n\n```java\nimport com.github.ladutsko.isbn.ISBN;\nimport com.github.ladutsko.isbn.ISBNException;\nimport com.github.ladutsko.isbn.ISBNFormat;\n\nclass HelloWorld {\n    public static void main(String[] args) {\n        try {\n            ISBN isbn = ISBN.parseIsbn(\"0131872486\"); // or 978-0131872486\n            // Valid isbn string\n            ISBNFormat format = new ISBNFormat();\n            System.out.println(format.format(isbn.getIsbn10())); // output: 0-13-187248-6\n            System.out.println(format.format(isbn.getIsbn13())); // output: 978-0-13-187248-6\n        } catch (ISBNException e) {\n            // Invalid isbn string\n            e.printStackTrace(); // Reason\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladutsko%2Fisbn-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fladutsko%2Fisbn-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladutsko%2Fisbn-core/lists"}