An open API service indexing awesome lists of open source software.

https://github.com/qwtel/lilit

Florian's little iterator library.
https://github.com/qwtel/lilit

async-await async-iterators for-await-of iterator-library iterators library

Last synced: 2 months ago
JSON representation

Florian's little iterator library.

Awesome Lists containing this project

README

        

# Florian's Little Iterator Library

[![Build status][tr-svg]][travis]

An iterator library that is so simple you could have written it yourself.

ECMAScriopt's new (async) generator functions are powerful and almost seem to be designed to build libraries like these.

## What's Included
- [x] [Sync iterator version](./src/iter.ts)
- [x] [Async iterator version](./src/async-iter.ts)
- [ ] [itertools] Feature Parity
- [x] Type Declarations
- [ ] Typedoc
- [x] Basic Tests
- [ ] Advanced Tests
- [x] Usable everywhere
- [x] [Deno]
- [x] Node Modules
- [x] Node Require
- [x] Browser Imports
- [ ] 1.0 Release

[deno]: https://deno.land
[itertools]: https://docs.python.org/2/library/itertools.html

## How to Use

### Deno

```ts
// main.ts
import * as lilit from 'https://unpkg.com/lilit/ts/index.ts';
```
Run via `deno main.ts`

### Node 11+ Modules

```js
// main.mjs
import * as lilit from 'lilit/mjs';
```

Run via `node --experimental-modules main.mjs`

### Node Require
```js
// main.js
const lilit = require('lilit');
```

Run via `node main.js`

### Browser Imports
```js
// main.js
import * as lilit from 'https://unpkg.com/lilit/mjs/index.mjs';
```

Load via ``

### Other
To see what else is availabe, [browse the package contents](https://unpkg.com/lilit/).

[tr-svg]: https://travis-ci.org/qwtel/lilit.svg?branch=master
[travis]: https://travis-ci.org/qwtel/lilit