{"id":18961648,"url":"https://github.com/trialanderrororg/csl-consolidate","last_synced_at":"2026-04-01T15:30:19.094Z","repository":{"id":130692332,"uuid":"607888036","full_name":"TrialAndErrorOrg/csl-consolidate","owner":"TrialAndErrorOrg","description":"Small utility script which checks a list of CSL references against the Crossref doi.","archived":false,"fork":false,"pushed_at":"2023-09-29T14:53:33.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T04:52:43.877Z","etag":null,"topics":["citations","crossref","csl","doi","metadata","references","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"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/TrialAndErrorOrg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-02-28T21:58:33.000Z","updated_at":"2023-09-08T18:41:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"aabea7eb-2d8b-4bd2-8f7d-f04c13708b5b","html_url":"https://github.com/TrialAndErrorOrg/csl-consolidate","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrialAndErrorOrg%2Fcsl-consolidate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrialAndErrorOrg%2Fcsl-consolidate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrialAndErrorOrg%2Fcsl-consolidate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrialAndErrorOrg%2Fcsl-consolidate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrialAndErrorOrg","download_url":"https://codeload.github.com/TrialAndErrorOrg/csl-consolidate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239958283,"owners_count":19724925,"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":["citations","crossref","csl","doi","metadata","references","typescript"],"created_at":"2024-11-08T14:13:50.983Z","updated_at":"2026-04-01T15:30:19.006Z","avatar_url":"https://github.com/TrialAndErrorOrg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **Note**\n\u003e This repository is automatically generated from the [main parser monorepo](https://github.com/TrialAndErrorOrg/parsers). Please submit any issues or pull requests there.\n\n## API\n\n***\n\n### `consolidate()`\n\nTry to resolve a list of CSL data with crossref metadata\n\n#### Signature\n\n```ts\nconsolidate(data: Data[], options: object): Promise\u003cundefined | Data[]\u003e;\n```\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `data` | `Data`[] |\n| `options` | `object` |\n| `options.mailto` | `string` |\n\n#### Returns\n\n`Promise`\u003c`undefined` | `Data`[]\u003e\n\nDefined in:  [lib/csl-consolidate.ts:12](https://github.com/TrialAndErrorOrg/parsers/blob/main/libs/citations/csl-consolidate/src/lib/csl-consolidate.ts#L12)\n\n***\n\n### `dateSim()`\n\n#### Signature\n\n```ts\ndateSim(ref: Data, csl: Data): number;\n```\n\n#### Parameters\n\n| Name | Type |\n| :------ | :------ |\n| `ref` | `Data` |\n| `csl` | `Data` |\n\n#### Returns\n\n`number`\n\nDefined in:  [lib/csl-consolidate.ts:144](https://github.com/TrialAndErrorOrg/parsers/blob/main/libs/citations/csl-consolidate/src/lib/csl-consolidate.ts#L144)\n\n## Install\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as\n\n```bash\npnpm add csl-consolidate\n# or with yarn\n[![npm version](https://badge.fury.io/js/csl-consolidate.svg)](https://badge.fury.io/js/csl-consolidate) [![npm downloads](https://img.shields.io/npm/dm/csl-consolidate.svg)](https://www.npmjs.com/package/csl-consolidate)\n# yarn add csl-consolidate\n# or with npm\n# npm install csl-consolidate\n```\n\n# citations-csl-consolidate\n\nSmall utility script which checks a list of CSL references against the Crossref doi.\nIf possible it adds the missing DOIs and extra metadata provided by Crossref or the doi provider.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrialanderrororg%2Fcsl-consolidate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrialanderrororg%2Fcsl-consolidate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrialanderrororg%2Fcsl-consolidate/lists"}