lilit
v0.6.10
Published
[![Build status][tr-svg]][travis]
Downloads
120
Readme
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.
What's Included
- [x] Sync iterator version
- [x] Async iterator version
- [ ] 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
How to Use
Deno
// index.ts
import * as lilit from 'https://unpkg.com/lilit/ts/index.ts';
Run via deno index.ts
Node 11+ Modules
// index.mjs
import * as lilit from 'lilit/mjs';
Run via node --experimental-modules index.mjs
Node Require
// index.js
const lilit = require('lilit');
Run via node index.js
Browser Imports
// script.js
import * as lilit from 'https://unpkg.com/lilit/mjs/index.mjs';
Load via <script type="module" src="./script.js"></script>
Other
To see what else is availabe, browse the package contents.