<commit_before># @webex/webex-core

[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

> Core library for the Cisco Webex JS SDK.

Defines the plugin system, storage system, common http behaviors, credentials, services, and basic logging.

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [Maintainers](#maintainers)
- [License](#license)

## Install

```bash
npm install --save @webex/webex-core
```

## Usage

## Maintainers<commit_msg>docs(webex-core): add usage guide<commit_after># @webex/webex-core

[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

> Core library for the Cisco Webex JS SDK.

Defines the plugin system, storage system, common http behaviors, credentials, services, and basic logging.

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [Maintainers](#maintainers)
- [License](#license)

## Install

```bash
npm install --save @webex/webex-core
```

## Usage

### Client Scope Requirements

To utilize the basic functionality of the `services` plugin that is bound to the `webex-core` plugin upon initialization, the following scopes must be present in the provided client's scopes:

- `spark:all`

### Environment Variables

The following environment variables are used by this plugin:

- `U2C_SERVICE_URL` - stores the service catalog collecting url, typically the **U2C** service

### Configuration

The `services` plugin that is bound to the `webex-core` plugin upon initialization supports the ability to inject discovery urls via the constructor:

```js
const webex = new Webex({
  config: {
    services: {
      hydra: 'https://api.ciscospark.com/v1'
    }
  }
});
```

The default configuration includes the **U2C** url as defined by environment variable `U2C_SERVICE_URL` or the default `https://u2c.wbx2.com/u2c/api/v1`

## Maintainers
{'fraction_non_alphanumeric': 0.13209393346379647, 'fraction_numerical': 0.006360078277886497, 'mean_word_length': 5.032448377581121, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7551596', 'n_tokens_mistral': 666, 'n_tokens_neox': 623, 'n_words': 184}