|
1 | | -# js-dataverse |
| 1 | +## Dataverse JavaScript Client |
2 | 2 |
|
3 | | -[](https://www.npmjs.com/package/js-dataverse) |
| 3 | + |
4 | 4 |
|
5 | | -A JavaScript/TypeScript API wrapper for [Dataverse](http://guides.dataverse.org/en/latest/api/). |
| 5 | +The Dataverse JavaScript Client is an open-source package that provides a set of use-case-driven functions to interact with the [Dataverse API](http://guides.dataverse.org/en/latest/api/). Designed around Domain-Driven Design (DDD) principles, this package offers a structured, high-level interface to perform actions like retrieving datasets, managing collections, uploading files, and more. |
6 | 6 |
|
7 | | -- [Installation](./docs/installation.md) |
8 | | -- [Use Cases](./docs/useCases.md) |
9 | | -- [Local Development](./docs/localDevelopment.md) |
10 | | -- [Contributing](./CONTRIBUTING.md) |
11 | | -- [License](./LICENSE) |
| 7 | +This package is part of the Dataverse Frontend ecosystem and is intended to be used by applications or services that integrate with the Dataverse platform. |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +- **Use case-centric API functions** – Organized around domain-specific actions like `getDataset`, `createCollection`, or `restrictFile`. |
| 12 | +- **TypeScript-first** – All use cases include strong typings for inputs and outputs, improving developer experience. |
| 13 | + |
| 14 | +## Installation |
| 15 | + |
| 16 | +Install the package via npm: |
| 17 | + |
| 18 | +```bash |
| 19 | +npm install @iqss/dataverse-client-javascript |
| 20 | +``` |
| 21 | + |
| 22 | +## Usage |
| 23 | + |
| 24 | +```typescript |
| 25 | +import { getDataset } from '@iqss/dataverse-client-javascript' |
| 26 | + |
| 27 | +/* ... */ |
| 28 | + |
| 29 | +const datasetIdentifier = 'doi:10.77777/FK2/AAAAAA' |
| 30 | +const datasetVersion = '1.0' |
| 31 | + |
| 32 | +getDataset.execute(datasetIdentifier, datasetVersion).then((dataset: Dataset) => { |
| 33 | + /* ... */ |
| 34 | +}) |
| 35 | + |
| 36 | +/* ... */ |
| 37 | +``` |
| 38 | + |
| 39 | +For detailed information about available use cases see [Use Cases Docs](https://github.com/IQSS/dataverse-client-javascript/blob/develop/docs/useCases.md). |
| 40 | + |
| 41 | +For detailed information about usage see [Usage Docs](https://github.com/IQSS/dataverse-client-javascript/blob/develop/docs/usage.md). |
| 42 | + |
| 43 | +## Contributing |
| 44 | + |
| 45 | +Want to add a new use case or improve an existing one? Please check the [Contributing](https://github.com/IQSS/dataverse-client-javascript/blob/develop/CONTRIBUTING.md) section. |
| 46 | + |
| 47 | +## License |
| 48 | + |
| 49 | +This project is open source and available under the [MIT License](https://github.com/IQSS/dataverse-client-javascript/blob/develop/LICENSE). |
0 commit comments