open-index/open-npm huggingface dataset:
npm package: @queryon-widget/api-client
Description: API client for Queryon Chat Widget
Author: Queryon Team
Latest version: 0.1.5

# @queryon-widget/api-client

API client for Queryon Chat Widget.

## Installation

This is a private package. Make sure you have access and your `.npmrc` is configured:

```bash
# Add to your .npmrc:
@queryon-widget:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN

# Then install:
pnpm add @queryon-widget/api-client
```
npm package: @queso/attempt
Description: Wraps func in a try...catch.
Author: Jed Mao
Latest version: 1.2.0

# @queso/attempt

[![npm license](http://img.shields.io/npm/l/@queso/attempt.svg)](https://www.npmjs.org/package/@queso/attempt)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/attempt on RunKit](https://badge.runkitcdn.com/@queso/attempt.svg)](https://npm.runkit.com/@queso/attempt)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/attempt.svg?downloads=true)](https://nodei.co/npm/@queso/attempt/)

min + gzip | 126 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/attempt/attempt.ts)

Wraps `func` in a `try...catch`.

## Usage

```ts
import attempt from '@queso/attempt'

function exclaim(message: string) {
return message + '!'
}
attempt(exclaim)('hi')
```

## Parameters

| Name   | Type    | Description           |
| :----- | :------ | :-------------------- |
| `func` | `TFunc` | The function to wrap. |

### Type parameters

| Name      | Constraint                | Default |
| :-------- | :------------------------ | :------ |
| `TFunc`   | `(...args: any[]) => any` |         |
| `TReason` |                           | `Error` |

## Returns

A new wrapper function that, when called, returns a tuple of `[err, success]`.

### Return type

```ts
<TReason = Error>(
	...args: Parameters<TFunc>
) => [TReason | null, (ReturnType<TFunc> | undefined)?]
```
npm package: @queso/camel-case
Description: Converts a string value into camel case.
Author: Jed Mao
Latest version: 0.2.0

# @queso/camel-case

[![npm license](http://img.shields.io/npm/l/@queso/camel-case.svg)](https://www.npmjs.org/package/@queso/camel-case)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/camel-case on RunKit](https://badge.runkitcdn.com/@queso/camel-case.svg)](https://npm.runkit.com/@queso/camel-case)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/camel-case.svg?downloads=true)](https://nodei.co/npm/@queso/camel-case/)

min + gzip | 224 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/camel-case/camelCase.ts)

Converts a string value into [camel case](https://en.wikipedia.org/wiki/Camel_case).

## Usage

```ts
import camelCase from '@queso/camel-case'

camelCase('foo-bar-baz')
// => 'fooBarBaz'
```

## Parameters

| Name    | Type     | Description            |
| :------ | :------- | :--------------------- |
| `value` | `string` | The string to convert. |

## Returns

The camel-cased string.

### Return type

```ts
string
```
npm package: @queso/debounce
Description: Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
Author: Jed Mao
Latest version: 1.1.0

# @queso/debounce

[![npm license](http://img.shields.io/npm/l/@queso/debounce.svg)](https://www.npmjs.org/package/@queso/debounce)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/debounce on RunKit](https://badge.runkitcdn.com/@queso/debounce.svg)](https://npm.runkit.com/@queso/debounce)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/debounce.svg?downloads=true)](https://nodei.co/npm/@queso/debounce/)

min + gzip | 199 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/debounce/debounce.ts)

Creates a debounced function that delays invoking `func` until after `wait`
milliseconds have elapsed since the last time the debounced function was invoked.

## Usage

```ts
import debounce from '@queso/debounce'

function calculateLayout() {}
const [debounced, cancel] = debounce(calculateLayout, 100)
window.addEventListener('resize', debounced)
cancel()
```

## Parameters

| Name                    | Type              | Description                                                                                       |
| :---------------------- | :---------------- | :------------------------------------------------------------------------------------------------ |
| `func`                  | `TFunc`           | The function to debounce.                                                                         |
| `wait`                  | `number`          | The number of milliseconds to which invocations are debounced.                                    |
| `{ leading, trailing }` | `DebounceOptions` | Specify invoking on the `leading` or `trailing` edge of the timeout (Default is `trailing=true`). |

### Type parameters

| Name    | Constraint                |
| :------ | :------------------------ |
| `TFunc` | `(...args: any[]) => any` |

## Returns

A new debounced function paired with a cancel function.

### Return type

```ts
[(...args: Parameters<TFunc>) => any, () => void]
```
npm package: @queso/identity
Description: Returns the first argument it receives and ignores any additional arguments.
Author: Jed Mao
Latest version: 1.0.1

# @queso/identity

[![npm license](http://img.shields.io/npm/l/@queso/identity.svg)](https://www.npmjs.org/package/@queso/identity)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/identity on RunKit](https://badge.runkitcdn.com/@queso/identity.svg)](https://npm.runkit.com/@queso/identity)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/identity.svg?downloads=true)](https://nodei.co/npm/@queso/identity/)

min + gzip | 62 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/identity/identity.ts)

Returns the first argument it receives and ignores any additional arguments.

## Usage

```ts
import identity from '@queso/identity'

const object = { a: 1 }
identity(object) === object
// => true
```

## Parameters

| Name    | Type    | Description |
| :------ | :------ | :---------- |
| `value` | `T`     | Any value.  |
| `_args` | `any[]` |             |

### Type parameters

| Name |
| :--- |
| `T`  |

## Returns

The first argument it receives.

### Return type

```ts
T
```
npm package: @queso/is-boolean
Description: Checks if the primitive value of value is a boolean.
Author: Jed Mao
Latest version: 0.1.0

# @queso/is-boolean

[![npm license](http://img.shields.io/npm/l/@queso/is-boolean.svg)](https://www.npmjs.org/package/@queso/is-boolean)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/is-boolean on RunKit](https://badge.runkitcdn.com/@queso/is-boolean.svg)](https://npm.runkit.com/@queso/is-boolean)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/is-boolean.svg?downloads=true)](https://nodei.co/npm/@queso/is-boolean/)

min + gzip | 85 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/is-boolean/isBoolean.ts)

Checks if the primitive value of `value` is a boolean.

## Usage

```ts
import isBoolean from '@queso/is-boolean'

isBoolean(false)
// => true
```

## Parameters

| Name    | Type  | Description         |
| :------ | :---- | :------------------ |
| `value` | `any` | The value to check. |

## Returns

`true` if the primitive value of `value` is a boolean, else `false`.

### Return type

```ts
value is boolean
```
npm package: @queso/kebab-case
Description: Converts a string value into kebab case.
Author: Jed Mao
Latest version: 1.1.0

# @queso/kebab-case

[![npm license](http://img.shields.io/npm/l/@queso/kebab-case.svg)](https://www.npmjs.org/package/@queso/kebab-case)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/kebab-case on RunKit](https://badge.runkitcdn.com/@queso/kebab-case.svg)](https://npm.runkit.com/@queso/kebab-case)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/kebab-case.svg?downloads=true)](https://nodei.co/npm/@queso/kebab-case/)

min + gzip | 200 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/kebab-case/kebabCase.ts)

Converts a string value into [kebab case](https://en.wikipedia.org/wiki/Kebab_case).

## Usage

```ts
import kebabCase from '@queso/kebab-case'

kebabCase('fooBARBaz')
// => 'foo-bar-baz'
```

## Parameters

| Name    | Type     | Description            |
| :------ | :------- | :--------------------- |
| `value` | `string` | The string to convert. |

## Returns

The kebab-cased string.

### Return type

```ts
string
```
npm package: @queso/omit
Description: The opposite of @queso/pick; this method creates an object composed of the object's own properties that are not in the list of omitted keys.
Author: Jed Mao
Latest version: 0.2.0

# @queso/omit

[![npm license](http://img.shields.io/npm/l/@queso/omit.svg)](https://www.npmjs.org/package/@queso/omit)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/omit on RunKit](https://badge.runkitcdn.com/@queso/omit.svg)](https://npm.runkit.com/@queso/omit)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/omit.svg?downloads=true)](https://nodei.co/npm/@queso/omit/)

min + gzip | 114 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/omit/omit.ts)

The opposite of [pick](/pick); this method creates an object composed of the
object's own properties that are not in the list of omitted keys.

## Usage

```ts
import omit from '@queso/omit'

const obj = { a: 1, b: 2, c: 3 }
omit(obj, 'a', 'c')
// => { b: 2 }
```

## Parameters

| Name     | Type          | Description              |
| :------- | :------------ | :----------------------- |
| `object` | `T`           | The source object.       |
| `keys`   | `[K, ...K[]]` | The object keys to omit. |

### Type parameters

| Name | Constraint |
| :--- | :--------- |
| `T`  | `object`   |
| `K`  | `keyof T`  |

## Returns

A new object with specified keys omitted.

### Return type

```ts
Omit<T, K>
```
npm package: @queso/omit-keys
Description: The opposite of @queso/pick; this method creates an object composed of the object's own properties that are not in the list of omitted keys.
Author: Jed Mao
Latest version: 0.3.10
Deprecated: this package has been deprecated in favor of @queso/omit

# @queso/omit-keys

[![npm license](http://img.shields.io/npm/l/@queso/omit-keys.svg)](https://www.npmjs.org/package/@queso/omit-keys)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/omit-keys on RunKit](https://badge.runkitcdn.com/@queso/omit-keys.svg)](https://npm.runkit.com/@queso/omit-keys)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/omit-keys.svg?downloads=true)](https://nodei.co/npm/@queso/omit-keys/)

min + gzip | 122 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/omit-keys/omitKeys.ts)

The opposite of [pick](/pick); this method creates an object composed of the
object's own properties that are not in the list of omitted keys.

- **Note:** This method is considerably slower than [pick](/pick).

## Usage

```ts
import omitKeys from '@queso/omit-keys'

const object = { a: 1, b: 2, c: 3 }

omitKeys(object, 'a', 'c')
// => { b: 2 }
```

## Parameters

| Name   | Type        | Description              |
| :----- | :---------- | :----------------------- |
| object | T           | The source object.       |
| keys   | [K, ...K[]] | The object keys to omit. |

### Type parameters

| Name | Constraint |
| :--- | :--------- |
| T    | object     |
| K    | keyof T    |

## Returns

A new object with specified keys omitted.

### Return type

```ts
Pick<T, Exclude<keyof T, K>>
```
npm package: @queso/pick
Description: Creates an object composed of the picked object properties.
Author: Jed Mao
Latest version: 0.6.0

# @queso/pick

[![npm license](http://img.shields.io/npm/l/@queso/pick.svg)](https://www.npmjs.org/package/@queso/pick)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/pick on RunKit](https://badge.runkitcdn.com/@queso/pick.svg)](https://npm.runkit.com/@queso/pick)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/pick.svg?downloads=true)](https://nodei.co/npm/@queso/pick/)

min + gzip | 99 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/pick/pick.ts)

Creates an object composed of the picked `object` properties.

## Usage

```ts
import pick from '@queso/pick'

const obj = { a: 1, b: 2, c: 3 }
pick(obj, 'a', 'c')
// => { a: 1, c: 3 }
```

## Parameters

| Name     | Type  | Description                 |
| :------- | :---- | :-------------------------- |
| `object` | `T`   | The source object.          |
| `paths`  | `K[]` | The property paths to pick. |

### Type parameters

| Name | Constraint |
| :--- | :--------- |
| `T`  | `object`   |
| `K`  | `keyof T`  |

## Returns

A new object composed of the picked `object` properties.

### Return type

```ts
Partial<Pick<T, K>>
```
npm package: @queso/pick-by
Description: Creates an object composed of the object properties for which predicate returns truthy.
Author: Jed Mao
Latest version: 0.1.0

# @queso/pick-by

[![npm license](http://img.shields.io/npm/l/@queso/pick-by.svg)](https://www.npmjs.org/package/@queso/pick-by)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/pick-by on RunKit](https://badge.runkitcdn.com/@queso/pick-by.svg)](https://npm.runkit.com/@queso/pick-by)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/pick-by.svg?downloads=true)](https://nodei.co/npm/@queso/pick-by/)

min + gzip | 124 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/pick-by/pickBy.ts)

Creates an object composed of the object properties for which predicate returns truthy.

## Usage

```ts
import pickBy from '@queso/pick-by'

const obj = { a: 0, b: '', c: true, d: 'hello' }
pickBy(obj)
// => { c: true, d: 'hello' }
```

## Parameters

| Name        | Type                                              | Description                        |
| :---------- | :------------------------------------------------ | :--------------------------------- |
| `object`    | `T`                                               | The source object.                 |
| `predicate` | `<K extends keyof T>(value: T[K], key: K) => any` | The function invoked per property. |

### Type parameters

| Name | Constraint |
| :--- | :--------- |
| `T`  | `object`   |
| `K`  | `keyof T`  |

## Returns

The new object.

### Return type

```ts
Partial<T>
```
npm package: @queso/sleep
Description: Sleeps for a specified duration.
Author: Jed Mao
Latest version: 0.3.0

# @queso/sleep

[![npm license](http://img.shields.io/npm/l/@queso/sleep.svg)](https://www.npmjs.org/package/@queso/sleep)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/sleep on RunKit](https://badge.runkitcdn.com/@queso/sleep.svg)](https://npm.runkit.com/@queso/sleep)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/sleep.svg?downloads=true)](https://nodei.co/npm/@queso/sleep/)

min + gzip | 93 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/sleep/sleep.ts)

Sleeps for a specified `duration`.

## Usage

```ts
import sleep from '@queso/sleep'

async function brb() {
console.log('Be back in 42 seconds...')
await sleep(42000)
console.log("OK, I'm back!")
}
```

## Parameters

| Name       | Type     | Description                    |
| :--------- | :------- | :----------------------------- |
| `duration` | `number` | Time in milliseconds to sleep. |

## Returns

A `Promise` that resolves when the specified `duration` has ellapsed.

### Return type

```ts
Promise<void>
```
npm package: @queso/snake-case
Description: Converts a string value into snake case.
Author: Jed Mao
Latest version: 0.2.0

# @queso/snake-case

[![npm license](http://img.shields.io/npm/l/@queso/snake-case.svg)](https://www.npmjs.org/package/@queso/snake-case)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/snake-case on RunKit](https://badge.runkitcdn.com/@queso/snake-case.svg)](https://npm.runkit.com/@queso/snake-case)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/snake-case.svg?downloads=true)](https://nodei.co/npm/@queso/snake-case/)

min + gzip | 202 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/snake-case/snakeCase.ts)

Converts a string value into [snake case](https://en.wikipedia.org/wiki/Snake_case).

## Usage

```ts
import snakeCase from '@queso/snake-case'

snakeCase('fooBARBaz')
// => 'foo_bar_baz'
```

## Parameters

| Name    | Type     | Description            |
| :------ | :------- | :--------------------- |
| `value` | `string` | The string to convert. |

## Returns

The snake-cased string.

### Return type

```ts
string
```
npm package: @queso/throttle
Description: Creates a throttled function that only invokes func at most once per every wait milliseconds.
Author: Jed Mao
Latest version: 0.2.0

# @queso/throttle

[![npm license](http://img.shields.io/npm/l/@queso/throttle.svg)](https://www.npmjs.org/package/@queso/throttle)
[![Travis Build Status](https://img.shields.io/travis/jedmao/queso.svg)](https://travis-ci.org/jedmao/queso)
[![codecov](https://codecov.io/gh/jedmao/queso/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/queso)
[![Try @queso/throttle on RunKit](https://badge.runkitcdn.com/@queso/throttle.svg)](https://npm.runkit.com/@queso/throttle)

Part of a [library](../../../../) of zero-dependency npm modules that do just
one thing.

- 100% [TypeScript](http://www.typescriptlang.org/) support.
- It's not a party without [`Queso`](../../../../)!

[![npm](https://nodei.co/npm/@queso/throttle.svg?downloads=true)](https://nodei.co/npm/@queso/throttle/)

min + gzip | 192 bytes

[source](https://github.com/jedmao/queso/blob/master/src/packages/throttle/throttle.ts)

Creates a throttled function that only invokes `func` at most once per every
`wait` milliseconds.

## Usage

```ts
import throttle from '@queso/throttle'

const logScrollTop = e => { console.log(`top: ${e.target.scrollTop}`) }
const [throttled, cancel] = throttle(logScrollTop, 100)
window.addEventListener('scroll', throttled)
cancel()
```

## Parameters

| Name        | Type      | Description                                                                      |
| :---------- | :-------- | :------------------------------------------------------------------------------- |
| `func`      | `TFunc`   | The function to throttle.                                                        |
| `wait`      | `number`  | The number of milliseconds to which invocations are throttled.                   |
| `callFirst` | `boolean` | Specifies that `func` should be invoked on the leading edge of the wait timeout. |

### Type parameters

| Name    | Constraint                |
| :------ | :------------------------ |
| `TFunc` | `(...args: any[]) => any` |

## Returns

A new throttled function paired with a cancel function.

### Return type

```ts
[(...args: Parameters<TFunc>) => any, () => void]
```