crooney2016 / dataverse-client-javascript

A Dataverse client for JavaScript and TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dataverse-client-javascript

npm

A JavaScript/TypeScript API wrapper for Dataverse.

NPM

Module available as js-dataverse at https://www.npmjs.com/package/js-dataverse

Getting Started

This package is built using node v19, so it is recommended to use that version.

Make sure that you install all the project dependencies:

npm install

Build project

In order to build the project, we need to run the following command:

npm run build

the build generated will be placed in dist folder.

Tests

Run all tests

npm run test

Run unit tests

npm run test:unit

Run integration tests

npm run test:integration

Run test coverage

npm run test:coverage

Format and lint

Run formatter

npm run format

Run linter

Running a linting check on the code:

npm run lint

Fix linting checks on the code:

npm run lint:fix

Publishing new version

Automated publishing of versions could be automated when merging to master. Below are the steps that would be required to publish a new version:

  1. Run tests and checks
  2. Build the project
  3. Commit changes
  4. Upgrade npm version
  5. Publish, npm publish

Contributing

We love contributors! Please see CONTRIBUTING.md.

About

A Dataverse client for JavaScript and TypeScript

License:MIT License


Languages

Language:TypeScript 91.5%Language:JavaScript 8.5%