https://github.com/trialanderrororg/crossref-to-csl
Tiny utitity to convert an Crossref API resonponse JSON item to CSL.
https://github.com/trialanderrororg/crossref-to-csl
abstract ast syntax tree unified
Last synced: 2 months ago
JSON representation
Tiny utitity to convert an Crossref API resonponse JSON item to CSL.
- Host: GitHub
- URL: https://github.com/trialanderrororg/crossref-to-csl
- Owner: TrialAndErrorOrg
- Created: 2023-02-28T21:58:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T14:53:23.000Z (over 2 years ago)
- Last Synced: 2025-01-01T04:52:46.444Z (over 1 year ago)
- Topics: abstract, ast, syntax, tree, unified
- Language: TypeScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
> **Note**
> This repository is automatically generated from the [main parser monorepo](https://github.com/TrialAndErrorOrg/parsers). Please submit any issues or pull requests there.
## API
***
### `crossrefToCsl()`
#### Signature
```ts
crossrefToCsl(item: CrossrefJSON): CSL;
```
#### Parameters
| Name | Type |
| :------ | :------ |
| `item` | `CrossrefJSON` |
#### Returns
`CSL`
Defined in: [lib/crossref-to-csl.ts:52](https://github.com/TrialAndErrorOrg/parsers/blob/main/libs/citations/crossref-to-csl/src/lib/crossref-to-csl.ts#L52)
## Install
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
```bash
pnpm add crossref-to-csl
# or with yarn
[](https://badge.fury.io/js/crossref-to-csl) [](https://www.npmjs.com/package/crossref-to-csl)
# yarn add crossref-to-csl
# or with npm
# npm install crossref-to-csl
```
# citations-crossref-to-csl
Tiny utitity to convert an Crossref API resonponse JSON item to CSL.