{"id":24384197,"url":"https://github.com/avram/identifiers-js","last_synced_at":"2026-07-24T04:31:49.285Z","repository":{"id":137207018,"uuid":"2135957","full_name":"avram/identifiers-js","owner":"avram","description":"JavaScript parsing of various useful identifiers","archived":false,"fork":false,"pushed_at":"2011-11-05T18:05:37.000Z","size":100,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T06:53:47.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/avram.png","metadata":{"files":{"readme":"README","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":"2011-08-01T09:31:40.000Z","updated_at":"2014-12-09T19:04:52.000Z","dependencies_parsed_at":"2023-03-13T10:58:04.805Z","dependency_job_id":null,"html_url":"https://github.com/avram/identifiers-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avram/identifiers-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avram%2Fidentifiers-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avram%2Fidentifiers-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avram%2Fidentifiers-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avram%2Fidentifiers-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avram","download_url":"https://codeload.github.com/avram/identifiers-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avram%2Fidentifiers-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35827724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-24T02:00:07.870Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-19T10:45:39.920Z","updated_at":"2026-07-24T04:31:49.264Z","avatar_url":"https://github.com/avram.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"JavaScript parsing of various identifiers\n\nBased on ISBN Users' Manual (http://www.isbn.org/standards/home/isbn/international/html/usm4.htm)\nand the Wikipedia treatment of ISBN (http://en.wikipedia.org/wiki/International_Standard_Book_Number)\nand the Wikipedia treatment of ISSN (http://en.wikipedia.org/wiki/International_Standard_Serial_Number)\nand the Wikipedia treatment of SICI (http://en.wikipedia.org/wiki/Serial_Item_and_Contribution_Identifier)\n\nThis will also check ISMN validity, although it does not distinguish from their\nneighbors in namespace, ISBN-13. It does not handle pre-2008 M-prefixed ISMNs;\nsee http://en.wikipedia.org/wiki/International_Standard_Music_Number\n\nThis does not validate multiple identifiers in one field,\nbut it will gracefully ignore all non-number detritus,\nsuch as extraneous hyphens, spaces, and comments.\n\nIt currently maintains hyphens in non-initial and non-final position,\ndiscarding consecutive ones beyond the first as well.\n\nIt also adds the customary hyphen to valid ISSNs.\n\nTakes the first 8 valid digits and tries to read an ISSN,\ntakes the first 10 valid digits and tries to read an ISBN 10 or a UPC,\nand takes the first 13 valid digits to try to read an ISBN 13 or an EAN.\n\nIt also tries to parse the input as an SICI; if found, it will populate the\nSICI attribute with the proper SICI and the ISSN with the constituent ISSN.\nA later version will return the other metadata encoded by SICI as well.\n\nReturns an object with six attributes:\n\t\"issn\" \n\t\"isbn10\"\n\t\"isbn13\"\n\t\"upc\"\n\t\"ean\"\n\t\"sici\"\nEach will be set to a valid identifier if found, and otherwise be a\nboolean false.\n\nThe UPC logic is for a 10-digit UPC-A; the newer EAN system is equivalent\nto the isbn13 algorithm.\n\nThere could conceivably be a valid ISBN-13 with an ISBN-10\nsubstring; this should probably be interpreted as the latter, but it is a\nclient UI issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favram%2Fidentifiers-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favram%2Fidentifiers-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favram%2Fidentifiers-js/lists"}