{"id":22665196,"url":"https://github.com/peritext/peritext-utils","last_synced_at":"2025-03-29T09:28:57.824Z","repository":{"id":46934714,"uuid":"165404019","full_name":"peritext/peritext-utils","owner":"peritext","description":"⚙️ a library of reusable utilities for the peritext ecosystem","archived":false,"fork":false,"pushed_at":"2023-01-03T15:56:59.000Z","size":371,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T00:35:04.953Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peritext.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-12T15:36:38.000Z","updated_at":"2020-07-06T15:24:25.000Z","dependencies_parsed_at":"2023-02-01T07:31:35.500Z","dependency_job_id":null,"html_url":"https://github.com/peritext/peritext-utils","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/peritext%2Fperitext-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peritext%2Fperitext-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peritext%2Fperitext-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peritext%2Fperitext-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peritext","download_url":"https://codeload.github.com/peritext/peritext-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246165639,"owners_count":20734069,"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-12-09T13:20:10.414Z","updated_at":"2025-03-29T09:28:57.804Z","avatar_url":"https://github.com/peritext.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# peritext-utils\n\nCollection of utilities for the peritext ecosystem.\n\nPlease refer to the [peritext repositories](https://github.com/peritext) to see related modules allowing to build an publishing system.\n\n# API overview\n\nHere is a brief overview of the utilities exposed by this package. Refer to the source code documentation to get a better documentation about each utility API.\n\n\n`buildBibliography` : builds display-related data for rendering the bibliography of an edition\n\n`buildCitations` : builds display-related data for rendering the bibliographic citations of an edition\n\n`buildContextContent` : builds display-related data for rendering a resource's related contextualizations\n\n`buildGlossary` : builds display-related data for rendering the glossary of an edition\n\n`resourceToCslJSON` : converts a peritext resource into a CSL-JSON object\n\n`generateOpenUrl` : generates an open URL out of csl-json data\n\n`StructuredCOinS` : provides a span encoded with the Context Objects in Span / openURL specification\n\n`getRelatedAssetsIds` : computes related ids for a given edition\n\n`chooseAppropriateAsset` : defines the appropriate asset for rendering a contextualization based on a contextualizer's profile and a map of available assets\n\n`chooseAppropriateSubAsset` : defines the appropriate asset for rendering a contextualization based on a contextualizer's profile and a map of available assets\n\n`getContextualizationsFromEdition` : compute related contextualizations for an edition\n\n`loadAssetsForEdition` : loads related assets for an edition\n\n`buildHTMLMetadata` : builds HTML metadata for an edition\n\n`abbrevString` : abbreviates a string if it exceeds a given maximum\n\n`bibToSchema` : converts bibliographic data to microformat data\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperitext%2Fperitext-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperitext%2Fperitext-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperitext%2Fperitext-utils/lists"}