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
// main.ts import * as lilit from 'https://unpkg.com/lilit/ts/index.ts';
Node 11+ Modules
// main.mjs import * as lilit from 'lilit/mjs';
node --experimental-modules main.mjs
// main.js const lilit = require('lilit');
// main.js import * as lilit from 'https://unpkg.com/lilit/mjs/index.mjs';
<script type="module" src="./main.js"></script>
To see what else is availabe, browse the package contents.