{"id":19837353,"url":"https://github.com/e-e-e/library-lib","last_synced_at":"2026-04-11T22:52:11.801Z","repository":{"id":35206156,"uuid":"215534102","full_name":"e-e-e/library-lib","owner":"e-e-e","description":"A collection of helpful functions for parsing and manipulating library related data.","archived":false,"fork":false,"pushed_at":"2023-01-06T02:12:49.000Z","size":781,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T20:01:12.481Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e-e-e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-16T11:42:09.000Z","updated_at":"2020-12-21T19:17:06.000Z","dependencies_parsed_at":"2023-01-15T16:08:45.658Z","dependency_job_id":null,"html_url":"https://github.com/e-e-e/library-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-e-e%2Flibrary-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-e-e%2Flibrary-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-e-e%2Flibrary-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-e-e%2Flibrary-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-e-e","download_url":"https://codeload.github.com/e-e-e/library-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241202423,"owners_count":19926606,"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":[],"created_at":"2024-11-12T12:14:12.204Z","updated_at":"2026-04-11T22:52:11.160Z","avatar_url":"https://github.com/e-e-e.png","language":"TypeScript","readme":"# library-lib\n\n![Unit tests](https://github.com/e-e-e/library-lib/workflows/Unit%20tests/badge.svg)\n\nA collection of helpful functions for parsing and manipulating library related data.\n\n### Install\n\n```\nnpm install --save library-lib\n```\nor \n```\nyarn install library-lib\n```\n\n### Common Usage\n\n##### Convert an isbn10 number to isbn13:\n\n```ts\nimport { Isbn } from \"library-lib\";\n\nconst isbn10 = '0415389550'\n\n// via Isbn instance\nconst isbn = Isbn.parse(isbn10)\nlet isbn13 = isbn.toIsbn13());\n\n// or via static method\nisbn13 = Isbn.toIsbn13(isbn10);\n\n```\n\n#### Convert an isbn13 number to isbn10:\n\n```ts\nimport { Isbn } from \"library-lib\";\n\nconst isbn13 = '978-0-415-38955-6';\n\n// via Isbn instance\nconst isbn = Isbn.parse(isbn13)\nlet isbn10 = isbn.toIsbn10());\n\n// or via static method\nisbn10 = Isbn.toIsbn10(isbn13);\n```\n\n### Documentation\n\nSee [TS Docs](https://e-e-e.github.io/library-lib/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-e-e%2Flibrary-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-e-e%2Flibrary-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-e-e%2Flibrary-lib/lists"}