open-index/open-npm huggingface dataset:
npm package: @ketch-com/ketch-react-native
Description: Ketch React Native Library
Author: Justin Boileau
Latest version: 0.18.17

# ketch-react-native

Ketch React Native Library

## Usage

See our [Getting Started](https://developers.ketch.com/v3.0/docs/ketch-react-native-sdk-getting-started) and [Technical Documentation](https://developers.ketch.com/v3.0/docs/ketch-react-native-sdk-reference) documentation for usage instructions.

## License

MIT
npm package: @ketch-com/oid-js
Description: Ketch Object ID
Author: Ketch
Latest version: 1.0.1

# oid

Ketch Object ID library in TypeScript.

Example OID's:

    2GUTcoh54LjIgVmziQ5812
    2GUTiLeCNBq6uBhavno132
    2GUToEhtDHr8qBMLay1KPV

## Installation

```shell script
npm install -D @ketch-com/oid-js
```

## Usage

### NewOID

To create a new OID, use `newOID`:

```typescript
const o = newOID()
```

### toString()

To get the string representation of an existing OID, use `o.toString()`:

```typescript
const s = o.toString()
```

### toBytes()

To get the byte array representation of an existing OID, use `o.toBytes()`:

```typescript
const b = o.toBytes()
```
npm package: @ketch-com/resourcename-js
Description: Ketch Resource Name
Author: Ketch
Latest version: 0.2.18

# resourcename

Ketch Resource Name library in TypeScript.

Example Resource Names:

    srn:$service:$region:$tenant:$account:$organization:$resource/$info1/$info2
    srn:$service:$region:$tenant:$account:$organization:$resource/$info
    srn:$service:$region:$tenant:$account:$organization:$resource
    srn:$service:$region:$tenant::$organization:$resource
    srn:$service:*:$tenant::$organization:*

## Installation

```shell script
npm install -D @ketch-com/resourcename-js
```

## Usage

### Format

To format a ResourceName, create the ResourceName object and call `string()`:

```typescript
import {ResourceName} from '@ketch-com/resourcename-js';

console.log(ResourceName({
    service:      'service',
    region:       'region',
    tenant:       'tenant',
    account:      'account',
    organization: 'organization',
    resource:     'resource',
    info:         ['info1', 'info2'],
}).string());
```

### Parse

To parse the ResourceName from a string, use `parse`:

```typescript
import {parse} from '@ketch-com/resourcename-js';

const rn = parse('srn:service:region:tenant:account:organization:resource/info1/info2');
```
npm package: @ketch-sdk/ketch-agent
Description: Ketch TypeScript/JavaScript Module for Ketch DSR Agent
Author: Ketch Kloud, Inc.
Latest version: 0.0.5

# Ketch Agent

Ketch Agent provides a platform for executing custom scripts for a rights invocation. The agent supports executing Deletion and Access requests from your Data Subjects (Data Subject Requests or DSR).

# How it works

Ketch Agent is a containerized application that is deployed inside your VPC as part the transponder deployment.
When the transponder is connected and authenticated to Ketch, the agent periodically checks for any DSR Right activity that needs to be executed.
When a user invokes their DSR Right, the right is forwarded to the agent which then downloads your nodejs module and executes it dynamically.
Currently, we support scripts located in your local file system, or hosted on a public http server, or in an AWS S3 bucket behind default S3 authentication.

# Entrypoint

Your module need to export the [HandleRequest](./types/HandleRequest.html) function as defined in [the documentation](https://ketch-sdk.github.io/ketch-agent/index.html). You can use handlers exposed as part of the argument to this function to interact with the Ketch platform at runtime.

# Runtime of Ketch agent

- Nodejs LTS/hydrogen (v18.16.0)

# Typescript

```shell
npm install --save-dev @ketch-sdk/ketch-agent
```

# Examples
- Refer to https://github.com/ketch-sdk/ketch-agent/tree/main/examples/ for example implementations.

# More information

Reach out to support@ketch.com if you have any questions on how to leverage this integration.
npm package: @ketch-sdk/ketch-js
Description: Ketch TypeScript/JavaScript Module for Ketch Tag
Author: Ketch Kloud, Inc.
Latest version: 1.0.1

# ketch-js

Ketch JavaScript ES Module for the Ketch Tag

## Installation

```shell
npm install --save @ketch-sdk/ketch-js
```

## Initialization

```typescript
import { loadScript } from '@ketch-sdk/ketch-js'

const api = await loadScript('myOrgCode', 'myPropertyCode')
```

## Register a plugin

```typescript
api.registerPlugin(myPlugin)
```

## Register an identity provider

```typescript
api.registerIdentityProvider('myIdentity', myProvider)
```

## Register a storage provider

```typescript
api.registerStorageProvider(myProvider)
```

## Emits a custom event

```typescript
api.emit('myEvent', 'some argument')
```

## Register an event listener

```typescript
import { Consent } from '@ketch-sdk/ketch-types'

function myConsentHandler(consent: Consent) {
  console.log(consent)
}

api.on('consent', myConsentHandler)
api.addListener('consent', myConsentHandler)
```

## Register an event listener that is called only once

```typescript
api.once('consent', myConsentHandler)
```

## Deregister an event listener

```typescript
api.off('consent', myConsentHandler)
api.removeEventListener('consent', myConsentHandler)
```

## Deregister all event listeners

```typescript
api.removeAllListeners('consent')
```

## Get config

```typescript
const config = await api.getConfig()
```

## Get consent

```typescript
const consent = await api.getConsent()
```

## Get environment

```typescript
const env = await api.getEnvironment()
```

## Get GeoIP

```typescript
const ipInfo = await api.getGeoIP()
```

## Get identities

```typescript
const identities = await api.getIdentities()
```

## Get jurisdiction

```typescript
const jurisdiction = await api.getJurisdiction()
```

## Get region information

```typescript
const regionInfo = await api.getRegionInfo()
```

## Show the Consent experience

```typescript
api.showConsentExperience()
```

## Show the Preference experience.

```typescript
const options: ShowPreferenceOptions = {}
api.showPreferenceExperience(options)
```

## Invoke a right

```typescript
const request: InvokeRightEvent = {}
api.invokeRight(request)
```
npm package: @ketch-sdk/ketch-logging
Description: Ketch Logging interface
Author: Ketch Kloud, Inc.
Latest version: 1.2.2

# ketch-logging

Basic logging capabilities.

## Logger

```typescript
const prefix: string = ''
const level: string | LogLevel = getLogLevel() // or LogLevel.WARN or 'warn' (default level)
const logger: Logger = getLogger(prefix, level)
```

Returns a new `Logger`, which provides the following interface:

```typescript
export interface Logger {
  trace(...data: any[]): void
  debug(...data: any[]): void
  info(...data: any[]): void
  log(...data: any[]): void
  warn(...data: any[]): void
  error(...data: any[]): void
}
```

## getLogLevel

```typescript
const input: string = window.location.search
const prefix = 'swb_'
const logLevel: LogLevel = getLogLevel(input, prefix)
```

Determines the log level from the given input (defaults to the querystring). The prefix which
defaults to `swb_` is added to `log` to locate the parameter.
npm package: @ketchcms/schematics
Description: Ketch - modern, fast, powerful nestjs content management system (@schematics)
Latest version: 0.0.1-alpha.1

<p align="center">
  <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
</p>

  <p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
    <p align="center">
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/schematics.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/schematics.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/schematics.svg" alt="NPM Downloads" /></a>
  <a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
  <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
  <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>

## Description

In order to help people manage their projects, the CLI tool has been created. It helps on many grounds at once, from scaffolding the project to build well-structured applications. The Nest CLI is based on the [@angular-devkit](https://github.com/angular/devkit) package. Also, there're special schematics that are dedicated to the Nest development [@nestjs/schematics](https://github.com/nestjs/schematics).


## Installation
### NPM:

```
$ npm install -g @nestjs/schematics
```

### Docker:
```
$ docker pull nestjs/cli[:version]
$ docker run -it -rm -p 3000:3000 -v $(pwd)/workspace nestjs/schematics[:version]
```

### GIT:
```
$ git clone https://github.com/nestjs/schematics.git <project>
$ cd <project>
```

With your Node runtime:
```
$ npm install
$ npm link
```

With Docker:

```
$ docker build -t nestjs/schematics .
```

## Usage

Learn more in the [official documentation](https://docs.nestjs.com/).

## Stay in touch

* CLI Author - [Thomas Ricart](https://github.com/ThomRick) and [Kamil Mysliwiec](https://github.com/kamilmysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)