open-index/open-npm huggingface dataset:
npm package: @ibm-cloud/ibm_dph_services
Description: DPH Node SDK
Latest version: 0.4.0

<!--
[![npm-version](https://img.shields.io/npm/v/CloudEngineering/node-sdk-template.svg)](https://www.npmjs.com/package/node-sdk-template)
-->
# Data Product Hub Node.js SDK
Node.js client library to interact with various Data Product Hub Service APIs.

Disclaimer: this SDK is being released initially as a **pre-release** version.
Changes might occur which impact applications that use this SDK.

## Table of Contents

<!--
  The TOC below is generated using the `markdown-toc` node package.

      https://github.com/jonschlinkert/markdown-toc

  You should regenerate the TOC after making changes to this file.

      npx markdown-toc -i README.md
  -->

<!-- toc -->

- [Overview](#overview)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Using the SDK](#using-the-sdk)
- [Questions](#questions)
- [Issues](#issues)
- [Open source @ IBM](#open-source--ibm)
- [Contributing](#contributing)
- [License](#license)

<!-- tocstop -->

<!-- --------------------------------------------------------------- -->
## Overview

The DPH Node.js SDK allows developers to programmatically interact with the following
IBM Cloud services:

Service Name | Import Path
--- | ---
[Data Product Hub](https://cloud.ibm.com/apidocs/dataproducts) | @ibm-cloud/ibm-dph-services/dph/v1

## Prerequisites
* You need an [IBM Cloud][ibm-cloud-onboarding] account.
* **Node.js >=16**: This SDK is tested with Node.js versions 16 and up. It may work on previous versions but this is not officially supported.

[ibm-cloud-onboarding]: http://cloud.ibm.com/registration

## Installation

```sh
npm install @ibm-cloud/ibm-dph-services
```

## Using the SDK
For general SDK usage information, please see
[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md)

## Questions

If you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question at
[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud).

## Issues
If you encounter an issue with the SDK, you are welcome to submit
a [bug report](https://github.com/IBM/data-product-exchange-node-sdk/issues).
Before that, please search for similar issues. It's possible someone has
already encountered this issue.

## Open source @ IBM
Find more open source projects on the [IBM Github Page](http://ibm.github.io/)

## Contributing
See [CONTRIBUTING](CONTRIBUTING.md).

## License

This project is released under the Apache 2.0 license.
The license's full text can be found in
[LICENSE](LICENSE).
npm package: @ibm-cloud/ibm_dpx_services
Description: DPX Node SDK
Latest version: 0.0.5

<!--
[![npm-version](https://img.shields.io/npm/v/CloudEngineering/node-sdk-template.svg)](https://www.npmjs.com/package/node-sdk-template)
-->
# Data Product Exchange Node.js SDK
Node.js client library to interact with various Data Product Exchange Service APIs.

Disclaimer: this SDK is being released initially as a **pre-release** version.
Changes might occur which impact applications that use this SDK.

## Table of Contents

<!--
  The TOC below is generated using the `markdown-toc` node package.

      https://github.com/jonschlinkert/markdown-toc

  You should regenerate the TOC after making changes to this file.

      npx markdown-toc -i README.md
  -->

<!-- toc -->

- [Overview](#overview)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Using the SDK](#using-the-sdk)
- [Questions](#questions)
- [Issues](#issues)
- [Open source @ IBM](#open-source--ibm)
- [Contributing](#contributing)
- [License](#license)

<!-- tocstop -->

<!-- --------------------------------------------------------------- -->
## Overview

The DPX Node.js SDK allows developers to programmatically interact with the following
IBM Cloud services:

Service Name | Import Path
--- | ---
[Data Product Exchange](https://cloud.ibm.com/apidocs/dataproducts) | @ibm-cloud/ibm-dpx-services/dpx/v1

## Prerequisites
* You need an [IBM Cloud][ibm-cloud-onboarding] account.
* **Node.js >=16**: This SDK is tested with Node.js versions 16 and up. It may work on previous versions but this is not officially supported.

[ibm-cloud-onboarding]: http://cloud.ibm.com/registration

## Installation

```sh
npm install @ibm-cloud/ibm-dpx-services
```

## Using the SDK
For general SDK usage information, please see
[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md)

## Questions

If you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question at
[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud).

## Issues
If you encounter an issue with the SDK, you are welcome to submit
a [bug report](https://github.com/IBM/data-product-exchange-node-sdk/issues).
Before that, please search for similar issues. It's possible someone has
already encountered this issue.

## Open source @ IBM
Find more open source projects on the [IBM Github Page](http://ibm.github.io/)

## Contributing
See [CONTRIBUTING](CONTRIBUTING.md).

## License

This project is released under the Apache 2.0 license.
The license's full text can be found in
[LICENSE](LICENSE).
npm package: @ibm-cloud/openapi-ruleset
Description: Spectral ruleset for validating IBM Cloud services
Latest version: 1.33.8

# OpenAPI Ruleset
This package contains a custom Spectral ruleset for validating OpenAPI documents. It extends the `spectral:oas` ruleset, for which it defines custom severity levels. It also contains a number of additional rules based on API design requirements and guidance from IBM Cloud. This is the default ruleset used in the [`ibm-openapi-validator`](https://www.npmjs.com/package/ibm-openapi-validator) package.

## Installation

`npm install @ibm-cloud/openapi-ruleset`

Note that installation is only required if using this package programmatically or extending it in a Spectral config file written in JavaScript. It is not required if extending the ruleset in a Spectral config file written in YAML or JSON.

## Usage
### Spectral config file - YAML or JSON
* Note - no installation required. Spectral handles the import internally.

```yaml
# .spectral.yaml
extends: '@ibm-cloud/openapi-ruleset'
rules:
  content-entry-provided: off
```

### Spectral config file - JavaScript
```js
// .spectral.js
const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset');

module.exports = {
  extends: ibmOpenapiRuleset,
  rules: {
    'content-entry-provided': 'off'
  }
};
```

### Programmatically running Spectral
```js
// your-module.js
const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset');
const { Spectral } = require('@stoplight/spectral-core');

function async runSpectral(openapiDocument) {
  const spectral = new Spectral();
  spectral.setRuleset(ibmOpenapiRuleset);
  results = await spectral.run(openapiDocument);
  console.log(results);
}
```
npm package: @ibm-cloud/openapi-ruleset-utilities
Description: Programmatic utility functions for creating Spectral-formatted OpenAPI Rulesets
Latest version: 1.9.0

# OpenAPI Ruleset Utilities
This package contains a number of JS functions that may be useful in developing a custom Spectral ruleset for validating OpenAPI documents.

## Installation

`npm install @ibm-cloud/openapi-ruleset-utilities`

## Documentation

See [this page for comprehensive documentation](../../docs/openapi-ruleset-utilities.md)
on all functionality available in this package.
npm package: @ibm-cloud/project-node-client
Description: Project Node.js SDK
Author: IBM Corp.
Latest version: 1.2.2

[![Build Status](https://app.travis-ci.com/IBM/project-node-sdk.svg?branch=main)](https://app.travis-ci.com/github/IBM/project-node-sdk)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![npm-version](https://img.shields.io/npm/v/IBM/project-node-sdk.svg)](https://www.npmjs.com/package/@ibm-cloud/project-node-client)

# Project Node.js SDK
Node.js client library to interact with various [project APIs](https://test.cloud.ibm.com/apidocs/projects).

## Table of Contents

<!--
  The TOC below is generated using the `markdown-toc` node package.

      https://github.com/jonschlinkert/markdown-toc

  You should regenerate the TOC after making changes to this file.

      npx markdown-toc -i README.md
  -->

<!-- toc -->

- [Overview](#overview)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Using the SDK](#using-the-sdk)
- [Questions](#questions)
- [Issues](#issues)
- [Open source @ IBM](#open-source--ibm)
- [Contributing](#contributing)
- [License](#license)

<!-- tocstop -->

<!-- --------------------------------------------------------------- -->
## Overview

The IBM Cloud project Node.js SDK allows developers to programmatically interact with the following
IBM Cloud services:

Service Name | Import Path
--- | ---
[Project](https://test.cloud.ibm.com/apidocs/projects) | project/v1 

## Prerequisites
* You need an [IBM Cloud][ibm-cloud-onboarding] account.
* **Node.js >=14**: This SDK is tested with Node.js versions 14 and up. It may work on previous versions but this is not officially supported.
- Note that v14 is technically *supported* but not officially *guaranteed* as we only test on v16 and higher

[ibm-cloud-onboarding]: http://cloud.ibm.com/registration

## Installation

```sh
npm install @ibm-cloud/project-node-client
```

## Using the SDK
For general SDK usage information, please see
[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md)

## Questions

If you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question at
[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud).

## Issues
If you encounter an issue with the SDK, you are welcome to submit
a [bug report](https://github.ibm.com/ibmcloud/project-node-sdk/issues).
Before that, please search for similar issues. It's possible someone has
already encountered this issue.

## Open source @ IBM
Find more open source projects on the [IBM Github Page](http://ibm.github.io/)

## Contributing
See [CONTRIBUTING](CONTRIBUTING.md).

## License

This project is released under the Apache 2.0 license.
The license's full text can be found in
[LICENSE](LICENSE).
npm package: @ibm-cloud/sdk-test-utilities
Description: A set of utility methods for unit tests in IBM Cloud SDKs
Author: Dustin Popp
Latest version: 1.0.0

# SDK Test Utilities

A set of utility methods for unit tests in IBM Cloud SDKs.

This package is published separately from `ibm-cloud-sdk-core`. It includes `expect`
as a dependency, which is not intended for inclusion in production packages. This
utility package should only be installed as a _development_ dependency and the logic
it contains will only ever be needed for tests.
npm package: @ibm-cloud/watsonx-data
Description: IBM Cloud Watsonx.data Node.js SDK
Author: IBM Corp.
Latest version: 0.6.0

[![Build Status](https://travis-ci.com/IBM/watsonxdata-node-sdk.svg?&branch=main)](https://travis.ibm.com/IBM/watsonxdata-node-sdk)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
<!--
[![npm-version](https://img.shields.io/npm/v/IBM/watsonxdata-node-sdk.svg)](https://www.npmjs.com/package/@ibm-cloud/watsonx-data)
-->
# IBM Cloud Watsonx.data Node.js SDK
Node.js client library to interact with various [Watsonx-data APIs](https://cloud.ibm.com/apidocs?category=watsonxdata).

Disclaimer: this SDK is being released initially as a **pre-release** version.
Changes might occur which impact applications that use this SDK.

## Table of Contents

<!--
  The TOC below is generated using the `markdown-toc` node package.

      https://github.com/jonschlinkert/markdown-toc

  You should regenerate the TOC after making changes to this file.

      npx markdown-toc -i README.md
  -->

<!-- toc -->

- [Overview](#overview)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Using the SDK](#using-the-sdk)
- [Questions](#questions)
- [Issues](#issues)
- [Open source @ IBM](#open-source--ibm)
- [Contributing](#contributing)
- [License](#license)

<!-- tocstop -->

<!-- --------------------------------------------------------------- -->
## Overview

The IBM Cloud Watsonx-data Node.js SDK allows developers to programmatically interact with the following
IBM Cloud services:

Service Name | Import Path
--- | ---
[Watsonx.data](https://cloud.ibm.com/apidocs/watsonxdata) | @ibm-cloud/watsonx-data/watsonx-data

## Prerequisites
* You need an [IBM Cloud][ibm-cloud-onboarding] account.
* **Node.js >=14**: This SDK is tested with Node.js versions 14 and up. It may work on previous versions but this is not officially supported.

[ibm-cloud-onboarding]: http://cloud.ibm.com/registration

## Installation

```sh
npm install @ibm-cloud/watsonx-data
```

## Using the SDK
For general SDK usage information, please see
[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md)

## Questions

If you are having difficulties using this SDK or have a question about the IBM Cloud services,
please ask a question at
[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud).

## Issues
If you encounter an issue with the SDK, you are welcome to submit
a [bug report](https://github.com/IBM/watsonxdata-node-sdk/issues).
Before that, please search for similar issues. It's possible someone has
already encountered this issue.

## Open source @ IBM
Find more open source projects on the [IBM Github Page](http://ibm.github.io/)

## Contributing
See [CONTRIBUTING](CONTRIBUTING.md).

## License

This project is released under the Apache 2.0 license.
The license's full text can be found in
[LICENSE](LICENSE).
npm package: @ibm-design/charts-line
Description: An implementation of the IBM Design Language's [line chart](https://www.ibm.com/design/language/experience/data-visualization/chart-models/linechart/) using [C3.js](http://c3js.org/).
Latest version: 1.0.0-beta2

# IBM Charts - Line
## @ibm-design/charts-line
An implementation of the IBM Design Language's [line chart](https://www.ibm.com/design/language/experience/data-visualization/chart-models/linechart/) using [C3.js](http://c3js.org/).

![Line chart transitioning in](/packages/charts-line/charts-line.gif?raw=true "IBM Line Chart")

## Usage
This add-on to C3.js uses the exact same [arguments](http://c3js.org/reference.html). Be sure to add the `ibm-charts-line.css` and `ibm-charts-line.js` files after the D3 and C3 files are referenced:

```
<!DOCTYPE html>
<html>
    <body>
        <div id="myChart"></div>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.css" />
        <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.0/d3.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script>
        <link rel="stylesheet" href="PATH-TO-YOUR/lib/ibm-charts-line.css" />
        <script src="PATH-TO-YOUR/lib/ibm-charts-line.js"></script>
        <script>
            ibmChart({
              data: {
                columns: [
                  ['data1', 200, 300, 150, 400, 275, 360],
                  ['data2', 210, 170, 240, 120, 160, 130],
                  ['data3', 370, 350, 375, 340, 350, 340],
                ],
              },
              id: 'myChart',
              axis: {
                x: {
                  tick: {
                    format: (d) => {
                      let tick = d;
                      if (d > 0) {
                        tick = (d * 10) + 'k';
                      }
                      return tick;
                    },
                  },
                },
                y: {
                  min: 0,
                  max: 600,
                  tick: {
                    count: 7,
                  },
                }
              },
            });
        </script>
    </body>
</html>
```

To use the [C3.js API](http://c3js.org/reference.html#api-focus), call it through `ibmChart` and your chart's unique identifier:

```
var newData = [
    ['data1', 200, 300, 150, 400, 275, 360],
    ['data2', 210, 170, 240, 120, 160, 130],
    ['data3', 370, 350, 375, 340, 350, 340],
];

ibmChart.myChart.load({
    columns: newData,
});
```
npm package: @ibm-functions/iam-token-manager
Description: Helper library to handle IBM Cloud IAM Tokens
Latest version: 1.0.11
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# IBM IAM Token Manager library

[![Build Status](https://travis-ci.org/ibm-functions/iam-token-manager-nodejs.svg?branch=master)](https://travis-ci.org/ibm-functions/iam-token-manager-nodejs)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)


## Installation
```
npm install @ibm-functions/iam-token-manager
```

## Usage
Provide constructor parameters `iamApikey` and `iamUrl` (Optional) to create a new instance.
```javascript
const itm = require('@ibm-functions/iam-token-manager')
const m = new itm({
    "iamApikey":"1234ABCD..."
})
```

Use the function `getToken` to get an IAM acess token. This function returns a `Promise`.
```javascript
m.getToken().then(token => console.log('Authorization:', 'Bearer', token))
```
output:
```bash'
Authorization: Bearer eyJhbGciOiJIUz......sgrKIi8hdFs
```

Use the function `getAuthHeader` to get a Bearer HTTP Authorization header including the token. This function returns a `Promise`.
```javascript
m.getAuthHeader().then(header => console.log('Authorization:', header))
```
output:
```bash
Authorization: Bearer eyJhbGciOiJIUz......sgrKIi8hdFs
```

## Using with OpenWhisk client library
```javascript
const itm = require('@ibm-functions/iam-token-manager')
const m = new itm({
    "iamApikey":"1234ABCD..."
})
const openwhisk = require('openwhisk')
const ow = openwhisk({
    auth_handler:m
})
```
Note: Need to use a version of `openwhisk` that supports `auth_handler` plugin.

### Using Within IBM Cloud Functions nodejs v8 runtime
The nodejs v8 runtime provides an openwhisk npm module already including the iam token manager plugin pre-installed, it will use the environment variable `__OW_IAM_NAMESPACE_API_KEY` as the `iamApikey`
```javascript
var openwhisk = require('openwhisk');

function action() {
  var ow = openwhisk();
  return ow.actions.invoke('sample')
}

exports.main = action
```

## License
[Apache-2.0](LICENSE.txt)
npm package: @ibm-functions/shell
Description: Composer is an IBM Cloud Functions programming model for composing individual functions into larger applications. Compositions, informally named apps, run in the cloud using automatically managed compute and memory resources. Composer is an extension of t
Author: Nick Mitchell
Latest version: 1.6.1

# IBM Cloud Functions Shell

Composer is an IBM Cloud Functions programming model for composing
individual functions into larger applications. Compositions,
informally named apps, run in the cloud using automatically managed
compute and memory resources. Composer is an extension of the
function-as-a-service computing model, and enables stateful
computation, control flow, and rich patterns of data flow.

This npm package provides the **IBM Cloud Functions Shell**, an
Electron-based development tool for Composer.

## Getting Started

First, install the Shell:

```bash
npm install -g @ibm-functions/shell
```

This will provide you with a `fsh` command.  From there, you can begin
to program your compositions. For more detailed documentation, please
consult
[the main docs page](https://github.com/ibm-functions/composer/tree/master/docs).

As a first task, you may use one of the built-in demo apps:

```bash
fsh app preview @demos/hello.js
```

You should then see a visualization of this simple hello world app:
|<img src="https://github.com/ibm-functions/composer/blob/master/docs/hello-composition.png?raw=true" width="50%" title="Hello app">|
|:--:|
|Composition preview showing the control flow for the app.|

From there, you can visit the Code tab, copy it into your favorite
editor, and modify it to your liking. The `app preview` visualization
will automatically update as you edit and save the source file.

Next, you may deploy and invoke your app:

```bash
fsh app create hello @demos/hello.js
fsh app invoke hello -p name composer
```

Finally, if you wish to visualize the execution flow:

```bash
fsh session get --last
```

Or, more generally, you can use `fsh session list` recent sessions,
and do a `fsh session get` against a specific session id from that list.

For more information, we encourge you to consult the 
[the full docs page](https://github.com/ibm-functions/composer/tree/master/docs).

## Launching the Full Experience

The tool has an internal REPL that can be helpful for exploring and
refining your creations. To launch this experience:

```bash
fsh shell
```

On MacOS, you can pin the app to your dock. From there, you need only
click on the dock icon to launch the tool.

## Activity Visualization

The shell also includes visualizations of execution activity. For
example, you can use `fsh grid` to see a grid view of your recent
activity. If you specify `fsh grid compName`, the view will be limited
to the functions used by the given composition.

<img src="https://github.com/ibm-functions/shell/blob/master/images/grid.png?raw=true" width="75%" title="Activity Grid Visualization">|