open-index/open-npm huggingface dataset:
npm package: @stardazed/streams-compression
Description: Implementation of compression streams
Author: Arthur Langereis
Latest version: 1.0.0

@stardazed/streams-compression
==============================
This package provides am implementation of compression streams
types from the [Draft Compression Standard](https://wicg.github.io/compression/).

**⚠️ Important**: this is _NOT_ a polyfill. The classes are just normal exports.

👉 If you want an all-in-one polyfill for streams, fetch interop, text encoding and compression streams,
use the ⭐️[Stardazed streams polyfill](https://www.npmjs.com/package/@stardazed/streams-polyfill)⭐️!

Installation
------------
```
pnpm add @stardazed/streams-compression
npm install @stardazed/streams-compression
yarn add @stardazed/streams-compression
```

Usage
-----
```js
import { DecompressionStream } from "@stardazed/streams-compression";

// expand deflated data
const byteReadable = /* Get a readable stream that produces binary chunks */;
const decompressor = new DecompressionStream("deflate");
byteReadable
    .pipeThrough(decompressor)
    .pipeTo(byteWritable); /* Stream that accepts Uint8Array chunks */
```

```js
import { CompressionStream } from "@stardazed/streams-compression";

// compress arbitrary data
const byteReadable = /* Get a readable stream that produces binary chunks */;
const compressor = new CompressionStream("gzip");
byteReadable
    .pipeThrough(compressor)
    .pipeTo(byteWritable); /* Stream that accepts Uint8Array chunks */
```

Copyright
---------
© 2019-Present by Arthur Langereis - [@zenmumbler](https://twitter.com/zenmumbler)

License
-------
MIT
npm package: @stardazed/streams-fetch-adapter
Description: Patch fetch and Response to work with custom stream implementations
Author: Arthur Langereis
Latest version: 3.0.0

@stardazed/streams-fetch-adapter
================================
This package provides helper functions to create adapted versions of a runtime's
native `fetch` function and `Response` class to work with `ReadableStream`
implementations other than the built-in one.

If the runtime does not support `ReadableStream` at all, the provided custom
implementation will be used to add support for streams to both `fetch` and
`Response` transparently.

Support is also added to `fetch` to allow a `ReadableStream` for the `body` to
send to the server, but unlike the `fetch` spec describes, it does not send
the data incrementally to the server. Instead it reads the entire stream and
then sends it as a `Blob` body. Upload streaming must be implemented by the
user-agent and cannot be simulated.

**⚠️ Important**: this is _NOT_ a polyfill. This package only provides helper
functions that can be used to make adapted types for a streams implementation.

👉 If you want a polyfill for the [Stardazed streams](https://www.npmjs.com/package/@stardazed/streams)
implementation, use the ⭐️[Stardazed streams polyfill](https://www.npmjs.com/package/@stardazed/streams-polyfill)⭐️.

Installation
------------
Pick your preferred package provider program:

```
npm install @stardazed/streams-fetch-adapter
pnpm install @stardazed/streams-fetch-adapter
yarn add @stardazed/streams-fetch-adapter
```

**⚠️ Important**: This library requires TypeScript 3.6 or newer due to type changes in the standard library.


Usage
-----
Use this package if you want to adapt `fetch` and `Response` to support your custom
`ReadableStream` implementation, this may be for things like mocks or modified versions
of built-in streams or for a full replacement, like [Stardazed streams](https://www.npmjs.com/package/@stardazed/streams).

You only need to adapt the `Response` class if you want to manually construct a `Response`
with your custom `ReadableStream` instance as the body. If you just want to use your
implementation for a `Response` returned from `fetch` you only need to adapt `fetch`.

```ts
import { createAdaptedFetch, createAdaptedResponse } from "@stardazed/streams-fetch-adapter";

class MyReadableStream { /* implements ReadableStream interface */ }

// create adapted types...
const myFetch = createAdaptedFetch(window.fetch, window.ReadableStream, MyReadableStream);
const myResponse = createAdaptedResponse(window.Response, window.ReadableStream, MyReadableStream);

// ...and use them like the built-in versions
myFetch("./some-resource.txt").then(resp => resp.body /* <-- is an instance of MyReadableStream */);
myFetch("some-server.com/upload", { method: "post", body: new MyReadableStream(...) }); // works
const blob = new myResponse(new MyReadableStream(...)).blob(); // works
```

Copyright
---------
© 2018-Present by Arthur Langereis - [@zenmumbler](https://twitter.com/zenmumbler)

License
-------
MIT
npm package: @stardazed/streams-text-encoding
Description: Implementation of text encoder and decoder streams
Author: Arthur Langereis
Latest version: 1.0.2

@stardazed/streams-text-encoding
================================
This package provides an implementation of the `TextEncoderStream` and `TextDecoderStream`
types from the [Encoding Standard](https://encoding.spec.whatwg.org/).

**⚠️ Important**: this is _NOT_ a polyfill. The classes are just normal exports.

👉 If you want an all-in-one polyfill for streams, fetch interop and text encoding streams,
use the ⭐️[Stardazed streams polyfill](https://www.npmjs.com/package/@stardazed/streams-polyfill)⭐️!

Installation
------------
```
npm install @stardazed/streams-text-encoding
pnpm install @stardazed/streams-text-encoding
yarn add @stardazed/streams-text-encoding
```

Usage
-----
```js
import { TextEncoderStream, TextDecoderStream } from "@stardazed/streams-text-encoding";

// encode
const textReadable = /* Get a readable stream that produces string chunks */;
textReadable
    .pipeThrough(new TextEncoderStream()) // no options available
    .pipeTo(byteWritable);

// decode
const byteReadable = /* Get a readable stream that produces binary chunks */;
const decoder = new TextDecoderStream(encoding, options);
byteReadable
    .pipeThrough(decoder)
    .pipeTo(textWritable);
```

The options passed to the TextDecoderStream are identical to those passed to the
`TextDecoder` class. See [MDN's docs](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder)
for more.

Copyright
---------
© 2018 by Arthur Langereis - [@zenmumbler](https://twitter.com/zenmumbler)

License
-------
MIT
npm package: @stardazed/utf8
Description: Encode and decode utf8 sequences
Latest version: 1.1.0

@stardazed/utf8
===============
Encode and decode strings to and from utf8 byte sequences.
Will use `TextEncoder` and `TextDecoder` classes when available, otherwise
falls back to a polyfill implementation.

Installation
------------
```
npm install @stardazed/utf8
pnpm install @stardazed/utf8
yarn add @stardazed/utf8
```

Usage
-----
```ts
import { utf8Encode, utf8Decode } from "@stardazed/utf8";

// returns an Uint8Array
const encoded = utf8Encode("data⚠️ to🌈 encode😺");

// takes an ArrayBuffer, a TypedArray or a DataView, returns a string
const decoded = utf8Decode(encoded);

// You can optionally skip handling of a byte order marker
// this can fix an issue with a zero-width non-breaking-space
// (codepoint 0xFEFF) being at the beginning of your stream.
const decoded2 = utf8Decode(encoded, { ignoreBOM: true });

// For both encode and decode you can also specify you want to use
// the polyfill implementation and not the native one.
// This can be useful to have a perfectly consistent encoding across
// all platforms.
const a = utf8Encode("stuff", { forceUsePolyfill: true });
const b = utf8Decode(a, { forceUsePolyfill: true });
```

Copyright
---------
© 2018 by Arthur Langereis (@zenmumbler)

License
-------
MIT
npm package: @stardeckai/autumn-js
Description: Autumn JS Library
Author: John Yeo
Latest version: 0.1.85

# Autumn JS Library

`autumn-js` is a JavaScript/TypeScript library for interacting with the Autumn pricing and billing platform. This package provides both a server-side SDK for the Autumn API and a React package for client-side implementation.

## Installation

```bash
npm install autumn-js
```

## Docs
To learn how to use `autumn-js`, visit our documentation [here](https://docs.useautumn.com)
npm package: @stardust-collective/dag-api
Description: JavaScript API for connecting to a Constellation Network.
Author: Frank Fox
Latest version: 1.0.11
Deprecated: This package is no longer supported. It has been replaced by @stardust-collective/dag4-network

<h1 align="center">dag-api</h1>

<p align="center">
  JavaScript API for connecting to a <b>Constellation</b> Network.
</p>


# DAG API

This project provides interface methods to JSON-REST services within the Constellation Network ecosystem. This is a barebones API framework providing wrappers around commonly known endpoints. 

Available on [npm](https://www.npmjs.com/package/@stardust-collective/dag-api)
npm package: @stardust-collective/dag-keystore
Description: A key management tool for the Constellation Network
Author: Frank Fox
Latest version: 1.0.12
Deprecated: This package is no longer supported. It has been replaced by @stardust-collective/dag4-keystore

# dag-keystore
### A key management tool for the Constellation DAG token.

<ul>
<li>Generate new secp256k1 KeyPairs</li>
<li>Generate BIP44 Mnemonic Seed Phrases</li>
<li>Open pkcs12 files containing secp256k1 private key</li>
<li>ECSDA sign & verify</li>
<li>DAG token transfers </li>
</ul>

# Install
npm install @stardust-collective/dag-keystore

# TypeScript
import {keyStore, keyStoreFile} from '@stardust-collective/dag-keystore';

keyStore.generateSeedPhrase();

const { privateKey, publicKey} = keyStoreFile.readP12(binaryStr, this.passwordStr);
npm package: @stardust-collective/dag4-keyring
Description: A wallet management tool for multi-chain accounts.
Author: Frank Fox
Latest version: 2.8.1

#DAG4 Keyring
A tool for managing multi-asset chain wallets

This module was derived from MetaMask's [KeyringController](https://github.com/MetaMask/KeyringController)

The biggest changes are refactoring to TypeScript and adding support for other chains.
npm package: @stardust-configs/browserslist-config
Description: Shareable Browserslist config
Author: P-Chan
Latest version: 0.1.0

# @stardust-configs/browserslist-config

> Shareable Browserslist config

## Install

```sh
npm install @stardust-configs/browserslist-config --save-dev
```

or

```sh
yarn add @stardust-configs/browserslist-config --dev
```

## Usage

Edit `.browserslistrc`

```
extends @stardust-configs/browserslist-config
```

or

`package.json`

```json
{
  "browserslist": ["extends @stardust-configs/browserslist-config"]
}
```

## Author

[@p-chan](https://github.com/p-chan)

## License

MIT
npm package: @stardust-configs/eslint-config
Description: Shareable ESLint config
Author: P-Chan
Latest version: 0.12.1

# @stardust-configs/eslint-config

> Shareable ESLint config

## Install

```sh
npm install eslint @stardust-configs/eslint-config -D
```

or

```sh
yarn add eslint @stardust-configs/eslint-config -D
```

## Usage

Add environments and configs to `.eslintrc.js`.

### Environments

- `@stardust-configs/eslint-config/environments/browser`
- `@stardust-configs/eslint-config/environments/node`
- `@stardust-configs/eslint-config/environments/es5`
- `@stardust-configs/eslint-config/environments/es6`
- `@stardust-configs/eslint-config/environments/es2016`
- `@stardust-configs/eslint-config/environments/es2017`
- `@stardust-configs/eslint-config/environments/es2018`
- `@stardust-configs/eslint-config/environments/es2019`
- `@stardust-configs/eslint-config/environments/es2020`
- `@stardust-configs/eslint-config/environments/es2021`
- `@stardust-configs/eslint-config/environments/es2022`
- `@stardust-configs/eslint-config/environments/es2023`
- `@stardust-configs/eslint-config/environments/es2024`

### Configs

- `@stardust-configs/eslint-config/configs/typescript`
- `@stardust-configs/eslint-config/configs/react`
- `@stardust-configs/eslint-config/configs/tailwindcss`
- `@stardust-configs/eslint-config/configs/next`
- `@stardust-configs/eslint-config/configs/prettier`

## Presets

<details>
<summary>TypeScript</summary>

```js
module.exports = {
  extends: [
    '@stardust-configs/eslint-config/environments/node',
    '@stardust-configs/eslint-config/environments/es2023',
    // Always write on the last line
    '@stardust-configs/eslint-config/configs/prettier',
  ],
  parserOptions: {
    project: './tsconfig.json',
  },
  overrides: [
    {
      files: ['**/*.ts'],
      extends: ['@stardust-configs/eslint-config/configs/typescript'],
    },
  ],
}
```

</details>

<details>
<summary>TypeScript + React + Next.js</summary>

```js
module.exports = {
  extends: [
    '@stardust-configs/eslint-config/environments/browser',
    '@stardust-configs/eslint-config/environments/node',
    '@stardust-configs/eslint-config/environments/es2023',
    // Always write on the last line
    '@stardust-configs/eslint-config/configs/prettier',
  ],
  parserOptions: {
    project: './tsconfig.json',
  },
  overrides: [
    {
      files: ['**/*.ts', '**/*.tsx'],
      extends: [
        '@stardust-configs/eslint-config/configs/typescript',
        '@stardust-configs/eslint-config/configs/react',
        '@stardust-configs/eslint-config/configs/next',
      ],
    },
  ],
}
```

</details>

## VSCode integration

Install [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and add the following settings to your user settings or workspace settings.

```json
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}
```

## Author

[@p-chan](https://github.com/p-chan)

## License

MIT
npm package: @stardust-configs/json-schema-validator
Description: JSON Schema validator
Author: P-Chan
Latest version: 0.4.0

# @stardust-configs/json-schema-validator

> JSON Schema validator

- Support for using CLI and module
- Support for multiple sources
- Support for Glob Pattern sources
- Support for local and remote JSON Schema

## Install

```bash
$ npm install @stardust-configs/json-schema-validator --save-dev
```

## Usage

```ts
import jsv from '@stardust-configs/json-schema-validator'

// Truthy
await jsv({
  src: 'tsconfig.json',
  schema: 'https://json.schemastore.org/tsconfig',
})

// Falsy
await jsv({
  src: 'tsconfig.json',
  schema: 'https://json.schemastore.org/typoconfig',
})
```

In CLI.

```bash
# basic
$ jsv "tsconfig.json" --schema "https://json.schemastore.org/tsconfig"

# glob
$ jsv "tsconfig.*.json" --schema "https://json.schemastore.org/tsconfig"

# multiple
$ jsv "tsconfig.node.json" "tsconfig.jest.json" --schema "https://json.schemastore.org/tsconfig"

# strict
$ jsv "tsconfig.json" --schema "https://json.schemastore.org/tsconfig" --strict
```

## Author

[@p-chan](https://github.com/p-chan)

## License

MIT
npm package: @stardust-configs/postcss-config
Description: Shareable PostCSS config
Author: P-Chan
Latest version: 0.3.0

# @stardust-configs/postcss-config

> Shareable PostCSS config

## Install

```sh
npm install @stardust-configs/postcss-config --save-dev
```

or

```sh
yarn add @stardust-configs/postcss-config --dev
```

## Usage

Edit `postcss.config.js`.

```js
module.exports = require('@stardust-configs/postcss-config').defaultConfig
```

## Override

Override `postcss.config.js`.

```js
module.exports = require('@stardust-configs/postcss-config').defineConfig({
  importFrom: './src/styles/variables.css',
})
```

## Author

[@p-chan](https://github.com/p-chan)

## License

MIT
npm package: @stardust-configs/prettier-config
Description: Shareable Prettier config
Author: P-Chan
Latest version: 0.3.0

# @stardust-configs/prettier-config

> Shareable Prettier config

## Install

```sh
npm install @stardust-configs/prettier-config -D
```

or

```sh
yarn add @stardust-configs/prettier-config -D
```

## Usage

Edit `.prettierrc`.

```json
"@stardust-configs/prettier-config"
```

## Override

Override `.prettierrc.js`.

```js
module.exports = {
  ...require('@stardust-configs/prettier-config'),
  printWidth: 80,
}
```

## Author

[@p-chan](https://github.com/p-chan)

## License

MIT

---

Inspired by [azz/prettier-config](https://github.com/azz/prettier-config)
npm package: @stardust-configs/renovate-config
Description: Shareable Renovate config
Author: P-Chan
Latest version: 0.5.0
Deprecated: npm-hosted presets has been deprecated, I recommend github presets.

# @stardust-configs/renovate-config

> Shareable Renovate config

## Usage

Edit `renovate.json`.

<details>
<summary><code>app</code> preset</summary>

> for Application

```json
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["github>stardust-configs/renovate-config:app"]
}
```

- Pin all dependencies (Except peerDependencies)
- Monthly update
- Grouping non-major dependencies updates, non-major devDependencies updates

</details>

<details>
<summary><code>lib</code> preset</summary>

> for Library (Browser & Node.js)

```json
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["github>stardust-configs/renovate-config:lib"]
}
```

- Pin only devDependencies
- Monthly update
- Automerge non-major updates

</details>

<details>
<summary><code>libNode</code> preset</summary>

> for Library (Node.js)

```json
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["github>stardust-configs/renovate-config:libNode"]
}
```

- Pin all dependencies (Except peerDependencies)
- Monthly update
- Automerge non-major updates

</details>

## Override

Override `renovate.json`.

<details>
<summary><code>label</code> preset</summary>

```json
{
  "extends": [":label(dependencies)"]
}
```

</details>

<details>
<summary><code>assignee</code> preset</summary>

```json
{
  "extends": [":assignee(p-chan)"]
}
```

</details>

## FAQ

### Why does each preset have a different target to pin?

See [Should you Pin your JavaScript Dependencies?](https://docs.renovatebot.com/dependency-pinning/#so-whats-best).

### Why does the non-major rules exclude v0.x?

Because during `v0.x`, even non-major updates cause breaking changes.

## Author

[@p-chan](https://github.com/p-chan)

## LICENSE

MIT
npm package: @stardust-configs/stylelint-config
Description: Shareable Stylelint config
Author: P-Chan
Latest version: 0.9.0

# @stardust-configs/stylelint-config

> Shareable Stylelint config

## Install

```sh
npm install stylelint @stardust-configs/stylelint-config -D
```

or

```sh
yarn add stylelint @stardust-configs/stylelint-config -D
```

## Usage

Edit `.stylelintrc`.

```json
{
  "extends": ["@stardust-configs/stylelint-config"]
}
```

Edit `package.json`.

```json
{
  "scripts": {
    "fix:css": "stylelint ./**/*.css --fix",
    "lint:css": "stylelint ./**/*.css"
  }
}
```

## Author

[@p-chan](https://github.com/p-chan)

## License

MIT