open-index/open-npm huggingface dataset:
npm package: @opencord/client
Description: Official Opencord Plugin SDK for JavaScript
Author: opencord.xyz
Latest version: 0.0.10

<p align="center">
  <a href="https://www.opencord.xyz/" >
    <img width="200" src="https://www.opencord.xyz/imgs/opencord/opencord_blue.svg">
  </a>
</p>

<p align="center">
Official Opencord Plugin SDK for JavaScript
</p>

<div align="center">

[![NPM version][image-version]][version]
[![NPM downloads][image-downloads]][downloads]
[![License][image-license]][license]

</div>

# 📦 Installation

```bash
$ npm install --save @opencord/client
# or
$ yarn add @opencord/client
```

<br />

# ⚙️ Initialization

```typescript
import { getClient } from '@opencord/client';

const oc = getClient();
```

<br />

# 💡 Usage

The OpencordClient provides a set of methods for accessing the SDK's features.

For example, you can use the [`getCode()`](https://developers.opencord.xyz/sdk/client-methods/#async-getcode) method to retrieve the authorization code.

```typescript
const { code, message, data } = await oc.getCode();

if (code === 200) {
  console.log('✅ Get authorization code successed', data);
} else {
  console.log('❌ Get authorization code failed.', code, message);
}
```

<br />

# 📚 Documentation

See: [https://developers.opencord.xyz/](https://developers.opencord.xyz/)

[version]: https://www.npmjs.com/package/@opencord/client
[downloads]: https://npmjs.org/package/@opencord/client
[license]: https://www.npmjs.com/package/@opencord/client
[image-version]: https://img.shields.io/npm/v/@opencord/client.svg?style=flat
[image-downloads]: https://img.shields.io/npm/dw/@opencord/client.svg?style=flat
[image-license]: https://img.shields.io/npm/l/@tiptap/core.svg?style=flat
npm package: @opencover/eslint-config-opencover
Description: ESLint Typescript shareable config for OpenCover's coding style.
Author: Thanos Diamantidis
Latest version: 2.0.5

# eslint-config-opencover

> ESLint Typescript shareable config for OpenCover's coding style

## Install

> Make sure you have already installed `eslint` and `typescript` as they are required packages.

```console
yarn add -D eslint-config-opencover
```

Then, add this to your `.eslintrc.js`:

```js
module.exports = {
	extends: "@opencover/eslint-config-opencover",
	rules: {
		// your overrides
	},
};
```

### Usage for React

Adjust your `.eslintrc.js` like this:

```js
module.exports = {
	extends: "@opencover/eslint-config-opencover/with-react",
	rules: {
		// your overrides
	},
};
```

### Add to .eslintignore certain files, for example:

```
*.css
*.svg
```

### (Optional) Add .prettierc.json with this preferred configuration

```
{
    "printWidth": 100,
    "trailingComma": "es5",
    "tabWidth": 4,
    "semi": true,
    "singleQuote": true
}
```


### (Optional) Linting with vscode

If you are using vscode this `.vscode/settings.json` file may come in handy:

```
{
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
    "editor.formatOnSave": true,
    "eslint.alwaysShowStatus": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "editor.rulers": [100]
}
```