<div align="center">
  <img src="https://github.com/TomerAberbach/lfi/blob/main/sloth.svg" alt="Sloth juggling office supplies" width="400" />
</div>

<h1 align="center">
  lfi
</h1>

<div align="center">
  <a href="https://npmjs.org/package/lfi">
    <img src="https://badgen.now.sh/npm/v/lfi" alt="version" />
  </a>
  <a href="https://github.com/TomerAberbach/lfi/actions">
    <img src="https://github.com/TomerAberbach/lfi/workflows/CI/badge.svg" alt="CI" />
  </a>
  <a href="https://unpkg.com/lfi/dist/index.min.js">
    <img src="https://deno.bundlejs.com/?q=lfi&badge" alt="gzip size" />
  </a>
  <a href="https://unpkg.com/lfi/dist/index.min.js">
    <img src="https://deno.bundlejs.com/?q=lfi&config={%22compression%22:{%22type%22:%22brotli%22}}&badge" alt="brotli size" />
  </a>
  <a href="https://github.com/sponsors/TomerAberbach">
    <img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86" alt="Sponsor" />
  </a>
</div>

<div align="center">
  A <b>l</b>azy <b>f</b>unctional <b>i</b>teration library supporting sync, async, and concurrent iteration.
</div>

## Features

- **Lazy:** delays applying operations until their results are needed
- **Functional:** provides highly composable functions
- **Iteration:** supports sync iterables, async iterables, and unique
  [_concurrent iterables_](https://lfi.dev/docs/concepts/concurrent-iterable)
- **Async & Concurrent:** apply async operations sequentially over async
  iterables or concurrently over
  [_concurrent iterables_](https://lfi.dev/docs/concepts/concurrent-iterable)
- **Tree Shakeable:** only bundle the code you actually use!
- **Adorable Logo:** designed by [Jill Marbach](https://jillmarbach.com)!

## Getting started

Check out the documentation at [lfi.dev](https://lfi.dev)!

## Contributing

Stars are always welcome!

For bugs and feature requests,
[please create an issue](https://github.com/TomerAberbach/lfi/issues/new).

## License

[MIT](https://github.com/TomerAberbach/lfi/blob/main/license-mit) ©
[Tomer Aberbach](https://github.com/TomerAberbach) \
[Apache 2.0](https://github.com/TomerAberbach/lfi/blob/main/license-apache) ©
[Google](https://github.com/TomerAberbach/lfi/blob/main/notice-apache)
