Florian's Little Iterator Library
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.
- Sync iterator version
- Async iterator version
- itertools Feature Parity
- Type Declarations
- Basic Tests
- Advanced Tests
- Usable everywhere
- Node Modules
- Node Require
- Browser Imports
- 1.0 Release
How to Use
// index.ts import * as lilit from 'https://unpkg.com/lilit/ts/index.ts';
Node 11+ Modules
// index.mjs import * as lilit from 'lilit/mjs';
node --experimental-modules index.mjs
// index.js const lilit = require('lilit');
// script.js import * as lilit from 'https://unpkg.com/lilit/mjs/index.mjs';
<script type="module" src="./script.js"></script>
To see what else is availabe, browse the package contents.