open-index/open-npm huggingface dataset:
npm package: @protontech/eslint-plugin-enforce-uint8array-arraybuffer
Description: This plugin enforces any Uint8Array type declaration to explicitly define an ArrayBuffer as generic type
Latest version: 2.0.0

# eslint-plugin-enforce-uint8array-arraybuffer

This ESLint rule enforces that any `Uint8Array` type declaration explicitly includes `<ArrayBuffer>` as its generic parameter.
An auto-fix feature is also implemented.

Using `<ArrayBuffer>` ensures compatibility with WebCrypto APIs, `Blob`s, and other browser features, following a TS [change](https://github.com/microsoft/TypeScript/pull/59417) in v5.9 the default `ArrayBufferLike` parameter is no longer guaranteed to be compatible with `ArrayBuffer` (due to differences with `SharedArrayBuffer`) .

## Installation

```sh
npm i --save-dev @protontech/eslint-plugin-enforce-uint8array-arraybuffer
```

## Usage

Add the plugin and rule to your ESLint config:

```js
import pluginEnforceUint8ArrayArrayBuffer from '@protontech/eslint-plugin-enforce-uint8array-arraybuffer';

export default defineConfig({
  plugins: {
    '@protontech/enforce-uint8array-arraybuffer': pluginEnforceUint8ArrayArrayBuffer,
  },
  rules: {
    '@protontech/enforce-uint8array-arraybuffer/enforce-uint8array-arraybuffer': 'error',
  }
})
```

## Example behavior

These usages are correct:

```ts
const a = new Uint8Array(); // this is automatically instantiated as Uint8Array<ArrayBuffer>
function f(data: Uint8Array<ArrayBuffer>) {}
type T = Promise<Uint8Array<ArrayBuffer>[]>;
```

While these will trigger eslint errors (`Uint8Array must be used as Uint8Array<ArrayBuffer>`), but can be auto-fixed.

```ts
function f(data: Uint8Array) {} // missingGeneric error
type T = Promise<Uint8Array[]>; // missingGeneric error
```

If a generic argument is specified other than `ArrayBuffer`, the linter will also error (`Uint8Array generic argument must be exactly 'ArrayBuffer'`), but it will require manual resolution:

```ts
function f(data: Uint8Array<ArrayBufferLike>) {} // wrongGeneric error
```
npm package: @protontech/ttag
Description: <div align='center'>
Latest version: 1.7.25

<div align='center'>

[![ttag](https://github.com/ttag-org/ttag/blob/master/website/static/img/ttag.svg)](https://ttag.js.org/)

Modern javascript i18n localization library based on ES6 tagged templates and the good old GNU gettext

[![travis](https://api.travis-ci.org/ttag-org/ttag.svg?master)](https://travis-ci.org/ttag-org/ttag) [![codecov](https://codecov.io/gh/ttag-org/ttag/branch/master/graph/badge.svg)](https://codecov.io/gh/ttag-org/ttag) ![downloads](https://img.shields.io/npm/dm/ttag.svg)

[![NPM](https://nodei.co/npm/ttag.png?downloads=true)](https://nodei.co/npm/ttag/)
</div>

---

## Key features
* Uses ES6 template literals for string formatting (no need for sprintf).
* Contexts [support](https://ttag.js.org/docs/context.html)
* It can precompile translations on a build step.
* Plurals support [ngettext](https://ttag.js.org/docs/ngettext.html).
* It can be integrated in any build tool that works with babel.
* Has a builtin [validation](https://ttag.js.org/docs/translations-validation.html) for translated strings format.
* It can use any default locale in sources (not only English).
* Handles [React (jsx) translations](https://ttag.js.org/docs/jsx-gettext.html).
* Can be easily integrated with Create React App. [CRA doc](https://ttag.js.org/docs/create-react-app.html)

## Usage example
```js
import { t, ngettext, msgid } from 'ttag'

// formatted strings
const name = 'Mike';
const helloMike = t`Hello ${name}`;

// plurals (works for en locale out of the box)
const n = 5;
const msg = ngettext(msgid`${ n } task left`, `${ n } tasks left`, n)
```

## Installation
```bash
npm install --save ttag
```

## CLI
You may also need to install ttag-cli for `po` files manipulation.

**ttag cli** - [https://github.com/ttag-org/ttag-cli](https://github.com/ttag-org/ttag-cli)

```bash
npm install --save-dev ttag-cli
```

## Usage from CDN

[https://unpkg.com/ttag/dist/ttag.min.js](https://unpkg.com/ttag/dist/ttag.min.js)

> This project is designed to work in pair with [babel-plugin-ttag](https://github.com/ttag-org/babel-plugin-ttag).  
> But you can also play with it [without transpilation](https://ttag.js.org/docs/quickstart.html).

## Support

Give a ⭐️ if this project helped you!

## Useful links

* [Documentation](https://ttag.js.org/)
* [Changelog](https://ttag.js.org/docs/changelog.html)
* [Quick Start](https://ttag.js.org/docs/quickstart.html)
* [Quick view on JsFiddle playground](https://jsfiddle.net/0atw0hgh/)

### Slides from talks
* [Kyivjs 2017](https://docs.google.com/presentation/d/1oj6ZaXfIfcClROe-4kOMMjnXFExn1gUfF6D30VyznWs/edit?usp=sharing)
* [Odessajs 2017](https://docs.google.com/presentation/d/1XB82-hTLQxP456Bk8UWJb-tZBsHnUHp4lJzmQorxNgs/edit?usp=sharing)

### Talks
* [Odessajs 2017 (video RU)](https://www.youtube.com/watch?v=9QjzpfA9LH4)

## License
This project is licensed under the  [MIT](https://github.com/eckertalex/cheatsheep/blob/main/LICENSE) license.
npm package: @protoqol/directus-extension-schema-types
Description: Directus extension to generate schemas/types for TypeScript, Rust, PHP, C#, Java, Python, Go, Kotlin, C++, Ruby, SQL, and GraphQL.
Author: Protoqol
Latest version: 1.1.11

![Title card](https://raw.githubusercontent.com/Protoqol/directus-extension-schema-types/main/.github/assets/title_card.png)

![NPM](https://img.shields.io/npm/v/%40protoqol%2Fdirectus-extension-schema-types)
![NPM](https://img.shields.io/github/actions/workflow/status/protoqol/directus-extension-schema-types/publish.yml)

## Features

- **Multi-language Support**: Generate schemas/types for TypeScript, Rust, PHP, C#, Java, Python, Go, Kotlin, C++, Ruby,
  SQL,
  and GraphQL.
- **Geography Support**: Includes custom types for geography fields (no dependencies needed).
- **Relationships included**: Handles relationships between collections, generating nested types where appropriate.
- **Fine-grained control**: Choose specific fields or entire collections to generate schemas for.
- **All versions of your favorite language** Java 8 up to 21, Python 3.6 up to 3.11

#### See [Generated code](#generated-code) for a preview.

---

## Installation

There are a few different ways to install this extension:

1.
    - (Recommended) Via Directus Marketplace search for `schema-types`
    - Go to `YOUR_DIRECTUS_URL/admin/settings/marketplace/extension/41ae62cf-ee7f-483f-80d9-5572690a2976` and install
      from there
    - Self-hosted: see [Directus Docs](https://directus.io/docs/self-hosting/including-extensions) to install
      extensions.
2. Enable the module in Settings > Modules > Module Bar > Schema Types.

> Note: You might need to set the following environment variable: `MARKETPLACE_TRUST: all`

---

## Generated code

Wondering what the generated code looks like?

![Preview Rust (with serde)](https://raw.githubusercontent.com/Protoqol/directus-extension-schema-types/main/.github/assets/preview_2.png)
> Converting the collection `geography` to Rust with serde enabled - you can also export without serde. Also note the
> automatically included geometry types, completely free of charge!
---

![Preview Python 3.9](https://raw.githubusercontent.com/Protoqol/directus-extension-schema-types/main/.github/assets/preview.png)
> Converting all collections to Python 3.9 has never been easier.
---

## Feedback, suggestions or issues?

Please open an issue on this repository. We're happy to hear back from you!

---

Developed by [Protoqol](https://protoqol.nl/).
npm package: @protorians/aun
Description: prototype yourself
Author: Y. Yannick GOBOU
Latest version: 0.0.28

# Protorians AUN

Protorian AUN est une librairie JavaScript pour la conception de l'interface utilisateur WEB.
Il est écrit en `TypeScript` et a été crée en utilisant l'outils `ViteJS`.
Le fonctionnement est basé sur l'imbrication de fonctions widgets et composants.
Les Widgets sont des représentant des balise native en HTML. Par contre les composants sont des blocs de widgets en vue d'une réutilisation et d'une personnalisation par usage par le biais de propriétés.

# Aperçu

Pour cet exemple nous allons créer un composant pour afficher `Hello World`

```javascript
import type { IWProps } from "@protorians/aun/types";
import { Widget } from "@protorians/aun/index";

// Typage de propriétés
interface IHelloProps extends IWProps {
  name: string;
}
// Composant
const myComponent = (props: IHelloProps) =>
  Widget({
    child: TextWidget({
      child: `Hello ${props.name}`,
    }),
  });

// Hydrater sur la balise HTML "<HelloWorld name="Me"></HelloWorld>"
HydrateComponentQueue("HelloWorld", myComponent);

// Deposer le composant dans la balise HTML avec l'id "root" (<div id="root"></div>)
DropComponent(myComponent, "#root");
DropComponent(myComponent, document.querySelector("#root"));
```

## License

Copyright 2023 — Protorians

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
npm package: @protos/core
Description: Typescript definitions used by all [@protos](https://www.npmjs.com/org/protos) modules.
Latest version: 0.0.14

# @protos/core

Typescript definitions used by all [@protos](https://www.npmjs.com/org/protos) modules.

## Related Modules

- [@protos/parser](https://www.npmjs.com/package/@protos/parser): Parser to read .proto files and produce a usable object hierarchy.
- [@protos/to-json](https://www.npmjs.com/package/@protos/to-json): Parses and outputs a JSON format from .proto files that can be used with other [@protos](https://www.npmjs.com/org/protos) modules.
- [@protos/traverse](https://www.npmjs.com/package/@protos/traverse): AST building and traversal for protobuf descriptions.
npm package: @protos/parser
Description: Parser to read .proto files and produce a usable object hierarchy.
Latest version: 0.0.14

# @protos/parser

Parser to read .proto files and produce a usable object hierarchy.

## Related Modules

- [@protos/core](https://www.npmjs.com/package/@protos/core): Typescript definitions used by all [@protos](https://www.npmjs.com/org/protos) modules.
- [@protos/to-json](https://www.npmjs.com/package/@protos/to-json): Parses and outputs a JSON format from .proto files that can be used with other [@protos](https://www.npmjs.com/org/protos) modules.
- [@protos/traverse](https://www.npmjs.com/package/@protos/traverse): AST building and traversal for protobuf descriptions.
npm package: @protos/to-json
Description: Command-line tool to parse and output a JSON format from .proto files that can be used with other [@protos](https://www.npmjs.com/org/protos) modules or by anyone who likes dealing with JSON rather than protocol buffer descriptors.
Latest version: 0.0.14

# @protos/to-json

Command-line tool to parse and output a JSON format from .proto files that can be used with other [@protos](https://www.npmjs.com/org/protos) modules or by anyone who likes dealing
with JSON rather than protocol buffer descriptors.

This module will crate a binary named `protos-to-json` that can be used to parse
protocol buffers and create a JSON description. If your protos use any third party
protos, you can reference them by their github URL and a base directory within
the repo.

## Example Usage

```bash
# Export all .proto files in /protos to STDOUT
protos-to-json \
  # Include protos from the grpc/grpc github repo starting at the base directory src/proto/grpc
  -i https://github.com/grpc/grpc.git:src/proto/grpc \
  # Include protos from the protocolbuffers/protobuf github repo starting at the base directory src/google
  -i https://github.com/protocolbuffers/protobuf.git:src/google \
  /protos
```

## Related Modules

- [@protos/core](https://www.npmjs.com/package/@protos/core): Typescript definitions used by all [@protos](https://www.npmjs.com/org/protos) modules.
- [@protos/parser](https://www.npmjs.com/package/@protos/parser): Parser to read .proto files and produce a usable object hierarchy.
- [@protos/traverse](https://www.npmjs.com/package/@protos/traverse): AST building and traversal for protobuf descriptions.
npm package: @protos/traverse
Description: AST building and traversal for protobuf descriptions.
Latest version: 0.0.14

# @protos/traverse

AST building and traversal for protobuf descriptions.

This module makes it easy to generate code from a protocol buffer or group of
protocol buffers. Just pass in a parsed proto file (use [@protos/to-json](https://www.npmjs.com/package/@protos/to-json) to create the parsed file) and a visitor.

## Example Usage

The following code will take the proto definitions from a local `protos.json` file
and output typescript code that has all enum definitions encased in namespaces that
map to the protobuf packages.

```typescript
import prettier from 'prettier';
import { stringVisitor, traverse } from '@protos/traverse';

const visitor = stringVisitor({
  Enum: {
    enter: ({ node }) => `const enum ${node.name} {`,
    exit: () => '}'
  },
  EnumValue: ({ node }) => `${node.name} = ${node.value},`,
  Package: {
    enter: ({ node }) => `namespace ${node.name} {`,
    exit: () => '}'
  }
});

const code = traverse(require('./protos.json'), visitor);
console.log(prettier.format(code, { parser: 'typescript' }));
```

## Related Modules

- [@protos/core](https://www.npmjs.com/package/@protos/core): Typescript definitions used by all [@protos](https://www.npmjs.com/org/protos) modules.
- [@protos/parser](https://www.npmjs.com/package/@protos/parser): Parser to read .proto files and produce a usable object hierarchy.
- [@protos/to-json](https://www.npmjs.com/package/@protos/to-json): Command-line tool to parse and output a JSON format from .proto files that can be used with other [@protos](https://www.npmjs.com/org/protos) modules.
npm package: @protosource/client
Description: TypeScript HTTP client runtime for protosource event sourcing framework
Latest version: 0.1.3

# @protosource/client

TypeScript HTTP client runtime for [protosource](https://github.com/funinthecloud/protosource) event sourcing framework.

Generated client classes (from `protoc-gen-protosource-ts`) extend `ProtosourceClient` to provide typed methods for each aggregate's commands, queries, and state loading.

## Install

```bash
npm install @protosource/client @bufbuild/protobuf
```

## Usage

```typescript
import { TaskClient } from "./generated/task_v1.protosource.client.js";
import { NoAuth, BearerTokenAuth } from "@protosource/client";

// Development (no auth)
const client = new TaskClient("http://localhost:8080", new NoAuth("alice"));

// Production (JWT)
const client = new TaskClient("https://api.example.com", new BearerTokenAuth("token", "alice"));

await client.create({ id: "task-1", title: "Ship it" });
const task = await client.load("task-1");
const history = await client.history("task-1");
```

## API

### `ProtosourceClient`

Base class used by generated clients.

| Method | Description |
|--------|-------------|
| `apply(route, schema, data)` | Send a command |
| `load(route, id, schema)` | Load aggregate state via event replay |
| `get(route, id, schema)` | Load from materialized store |
| `history(route, id)` | Get full event history |
| `query(route, queryPath, params, schema)` | Query via GSI index |

### Auth providers

| Class | Constructor | Description |
|-------|------------|-------------|
| `NoAuth` | `new NoAuth(actor)` | No auth headers, actor identity only |
| `BearerTokenAuth` | `new BearerTokenAuth(token, actor)` | `Authorization: Bearer <token>` |

Implement `AuthProvider` for custom auth schemes.

### `APIError`

Thrown on non-2xx responses. Fields: `statusCode`, `code`, `message`, `detail`.

### `ClientOptions`

| Option | Default | Description |
|--------|---------|-------------|
| `useJSON` | `false` | Use JSON instead of protobuf binary for requests |