open-index/open-npm huggingface dataset:
npm package: @katis/maybe
Description: Library for handling possibly undefined values
Author: Joni Katajamäki
Latest version: 1.3.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Maybe

This is a small library for handling potentially undefined values in TypeScript.

## Api

```ts
import * as Maybe from '@katis/maybe'

const value: string | undefined = 'defined'

// map (or its alias mapDefined)
const length: number | undefined = Maybe.map(value, s => s.length)

// filter (or its alias filterDefined)
const shortString: string | undefined = Maybe.filter(value, s => s.length <= 3)

// orNull
const nullable: string | null = Maybe.orNull('nullable')

// fromNullable
const undefinedString: string | undefined = Maybe.fromNullable(nullable)

// getOrThrow
const neverReached: string = Maybe.getOrThrow<string>(undefined)

// getOrDefault
const defaulted: string = Maybe.getOrDefault<string>(undefined, 'default')

// getOrElse
const alternative: number = Maybe.getOrElse<number>(undefined, () => Date.now())

// isDefined
if (Maybe.isDefined(undefined)) {
  // ...
}

// notDefined
if (Maybe.notDefined(undefined)) {
  // ...
}
```
npm package: @katis/monaco-typescript
Description: TypeScript and JavaScript language support for Monaco Editor
Author: Microsoft Corporation & Joni Katajamäki
Latest version: 3.1.1-dev
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Monaco TypeScript

Simple TypeScript and JavaScript language support for the Monaco Editor.

![typescript](https://cloud.githubusercontent.com/assets/5047891/15926623/5262fe08-2e3d-11e6-9b90-1d43fda07178.gif)

*Note* that this project focuses on single-file scenarios and that things like project-isolation, cross-file-features like Rename etc. are *outside* the scope of this project and not supported.

## Issues

Please file issues concering `monaco-typescript` in the [`monaco-editor` repository](https://github.com/Microsoft/monaco-editor/issues).

## Installing

This npm module is bundled and distributed in the [monaco-editor](https://www.npmjs.com/package/monaco-editor) npm module.


## Development

* `git clone https://github.com/Microsoft/monaco-typescript`
* `cd monaco-typescript`
* `npm install .`
* `npm run watch`
* open `$/monaco-typescript/test/index.html` in your favorite browser.
* test with `npm run test`

## Updating TypeScript

* change typescript's version in `package.json`.
* execute `npm install .`
* execute `npm run import-typescript`
* adopt new APIs

## Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.


## License
[MIT](https://github.com/Microsoft/monaco-typescript/blob/master/LICENSE.md)
npm package: @katis/pipe
Description: Pipe operator for TypeScript
Author: Joni Katajamäki
Latest version: 2.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Pipe

```
yarn add @katis/pipe
```

```
npm install @katis/pipe
```

TypeScript library for transforming values in the style of the Elm and F# pipe-operator.

## Motivation

Transforming values by chaining multiple function calls can make the code harder to read:

```ts
const removePrefix = (str: string, prefix: string): string =>
  str.startsWith(prefix) ? str.slice(prefix.length) : str;

const replace = (str: string, search: string, replaceWith: string) =>
  str.replace(search, replaceWith);

parseInt(replace(removePrefix("Value: 1300$", "Value: "), "$" ""), 10);
```

Pipe makes those calls sequential:

```ts
import { pipe } from '@katis/pipe'

const result = pipe('Value: 1300$')
  .to(removePrefix, 'Value: ')
  .to(replace, '$', '')
  .out(parseInt, 10)
```

## API

### `pipe(value)`

Create a pipeline that can be used to transform the provided value.

### `.to(fn, ...fnExtraArgs)`

Provide a function for the pipeline that transforms the value.
The function is called with the value as the first parameter, and with the optional
extra arguments as rest of the parameters.

Returns a new pipeline where the result is the return value of the function.

### `.out(fn, ...fnExtraArgs)`

Like `.to()` it takes a function that transforms the value, but just returns the transformed
value, ending the pipeline.
npm package: @katis/react-pixi
Description: Use React to render [Pixi.js](http://www.pixijs.com/) 2D graphics.
Latest version: 0.2.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# React Pixi renderer

Use React to render [Pixi.js](http://www.pixijs.com/) 2D graphics.

## Example

```tsx
import * as React from 'react'
import { Application } from 'pixi.js'
import { render, px } from '@katis/react-pixi'

class Player extends React.Component {
    render() {
        return (
            <container position={this.props.position}>
                <sprite image="assets/player.png" />
                <text position={{x: 0, y: -20}}>Player</text>
            </container>
        )
    }
}

const application = new Application({ ... })

render(application, <Player/>, document.getElementById('container'))
```
npm package: @katjes733/react-chatbot-kit
Description: Fully customizable chatbot kit for react.
Author: katjes733
Latest version: 1.0.1

# react-chatbot-kit

This is a maintained fork of the original react-chatbot-kit. It includes small improvements and fixes (for example: multi-line input support) to keep downstream projects working.

Contributions are welcome — PRs are appreciated. I review when possible.

## Development

### Prerequisites

- Node 18+
- Yarn 1.22+

#### Compatibility

- React: Keep `react` and closely related packages pinned to major version **19**. This preserves compatibility with downstream projects that cannot migrate from React 18. Coordinate any React major-version upgrades with downstream consumers before changing this constraint.

### Setup

1. Install dependencies:

```bash
yarn install
```

2. Run the full verification (formatting + tests):

```bash
yarn verify
```

3. Run tests:

```bash
yarn test
```

## Dependencies

Keep dependencies up to date with each PR. See the **Compatibility** subsection under *Prerequisites* for exceptions to automatic upgrades (for example, the React major-version guidance).

### VS Code

- Recommended: install common extensions (Prettier, ESLint, TypeScript).

## Contributing

- Keep test coverage at current levels.
- Open an issue describing the problem before or alongside a PR.
- Include the issue number in your PR and complete the PR template.
- Set this repository's `main` branch as the PR base.
- Run `yarn verify` and fix any failures before requesting review.

## Notes

- This repo is not actively maintained full-time, but improvements and fixes are accepted.
- See the original project for context: https://github.com/FredrikOseberg/react-chatbot-kit
npm package: @katlin/tx
Description: Writing script with typescript
Author: Annie Katlin
Latest version: 1.0.9

# TX

Rewritten [google/zx](https://github.com/google/zx) bash script library with typescript.

## Install

```shell
npm i @katlin/tx
```

## Features

- Library Only
- Typescript

## Documentation

### ``$`command` ``

Executes a given string using the `spawn` function from the
`child_process` package and returns `ProcessPromise<ProcessOutput>`.

Everything passed through `${...}` will be automatically escaped and quoted.

```ts
import {$, $async} from '@katlin/tx';

// sync
let name = 'foo & bar'
$`mkdir ${name}`;

// async
(async () => {
  let output = await $async`echo ${name}`;
  console.log(output);
})()
```

**There is no need to add extra quotes.** Read more about it in
[quotes](docs/quotes.md).

You can pass an array of arguments if needed:

```ts
let flags = [
  '--oneline',
  '--decorate',
  '--color',
]
$`git log ${flags}`
```

If the executed program returns a non-zero exit code,
`ProcessOutput` will be thrown.

```ts
try {
  $`exit 1`
} catch (p) {
  console.log(`Exit code: ${p.exitCode}`)
  console.log(`Error: ${p.stderr}`)
}
```

### Functions

#### `cd()`

Changes the current working directory.

```ts
import {cd} from '@katlin/tx';

cd('/tmp')
$`pwd` // outputs /tmp
```

### Configuration

```ts
import tx from '@katlin/tx';
```

#### `tx.shell`

Specifies what shell is used. Default is `which bash`.

```ts
tx.shell = '/usr/bin/bash'
```

#### `tx.prefix`

Specifies the command that will be prefixed to all commands run.

Default is `set -euo pipefail;`.

Or use a CLI argument: `--prefix='set -e;'`

#### `tx.quote`

Specifies a function for escaping special characters during command substitution.

#### `tx.verbose`

Specifies verbosity. Default is `true`.

In verbose mode, the `tx` prints all executed commands alongside with their outputs.

Or use a CLI argument `--quiet` to set `tx.verbose = false`.

## Credit

- [google/zx](https://github.com/google/zx)

## License

[Apache-2.0](LICENSE)