Skip to content

Commit

Permalink
docs: update readme files (#127)
Browse files Browse the repository at this point in the history
Regenerates all docs
  • Loading branch information
achingbrain authored Apr 25, 2024
1 parent 837e99e commit b168296
Show file tree
Hide file tree
Showing 33 changed files with 524 additions and 74 deletions.
19 changes: 17 additions & 2 deletions packages/blob-to-it/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

Allows reading Blob contents as an async iterator.

## Example
Expand Down Expand Up @@ -44,8 +59,8 @@ Loading this module through a script tag will make it's exports available as `Bl

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/blob-to-it/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/blob-to-it/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
2 changes: 1 addition & 1 deletion packages/blob-to-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"browser-readablestream-to-it": "^2.0.0"
},
"devDependencies": {
"aegir": "^42.2.5",
"aegir": "^42.2.7",
"it-all": "^3.0.0"
}
}
19 changes: 17 additions & 2 deletions packages/browser-readablestream-to-it/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

Allows treating a browser readable stream as an async iterator.

## Example
Expand Down Expand Up @@ -67,8 +82,8 @@ Loading this module through a script tag will make it's exports available as `Br

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/browser-readablestream-to-it/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/browser-readablestream-to-it/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-all/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

For when you need a one-liner to collect iterable values.

## Example
Expand Down Expand Up @@ -58,8 +73,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-all/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-all/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

The final batch may be smaller than the max.

## Example
Expand Down Expand Up @@ -62,8 +77,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-batch/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-batch/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-batched-bytes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

The final batch may be smaller than the max.

## Example
Expand Down Expand Up @@ -72,8 +87,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-batched-bytes/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-batched-bytes/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-buffer-stream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

Generate a stream of buffers, useful for testing purposes.

## Example
Expand Down Expand Up @@ -61,8 +76,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-buffer-stream/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-buffer-stream/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-byte-stream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

This module makes it easy to send and receive bytes over streams.

## Example
Expand Down Expand Up @@ -48,8 +63,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-byte-stream/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-byte-stream/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-drain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

Mostly useful for tests or when you want to be explicit about consuming an iterable without doing anything with any yielded values.

## Example
Expand Down Expand Up @@ -54,8 +69,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-drain/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-drain/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
23 changes: 19 additions & 4 deletions packages/it-filter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

Filter values out of an (async)iterable

## Example
Expand All @@ -18,7 +33,7 @@ import filter from 'it-filter'
// This can also be an iterator, generator, etc
const values = [0, 1, 2, 3, 4]

const fn = val => val > 2 // Return boolean to keep item
const fn = (val, index) => val > 2 // Return boolean to keep item

const arr = all(filter(values, fn))

Expand All @@ -35,7 +50,7 @@ const values = async function * () {
yield * [0, 1, 2, 3, 4]
}

const fn = async val => val > 2 // Return boolean or promise of boolean to keep item
const fn = async val => (val, index) > 2 // Return boolean or promise of boolean to keep item

const arr = await all(filter(values, fn))

Expand Down Expand Up @@ -64,8 +79,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-filter/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-filter/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-first/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

Return the first value in an (async)iterable

## Example
Expand Down Expand Up @@ -58,8 +73,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-first/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-first/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
19 changes: 17 additions & 2 deletions packages/it-flat-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
# About

<!--
!IMPORTANT!
Everything in this README between "# About" and "# Install" is automatically
generated and will be overwritten the next time the doc generator is run.
To make changes to this section, please update the @packageDocumentation section
of src/index.js or src/index.ts
To experiment with formatting, please run "npm run docs" from the root of this
repo and examine the changes made.
-->

The final batch may be smaller than requested batch size.

## Example
Expand Down Expand Up @@ -62,8 +77,8 @@ Loading this module through a script tag will make it's exports available as `It

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/achingbrain/it/blob/main/packages/it-flat-batch/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/achingbrain/it/blob/main/packages/it-flat-batch/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
Loading

0 comments on commit b168296

Please sign in to comment.