stop-iteration-iterator
npmv1.1.0TypeScriptFirefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it.
Adopt with care
stop-iteration-iterator is usable, with caveats. Last published 635 days ago.
- AAdoption: grade A, Excellent.
69.2M downloads per week and 1 known dependents.
- CMaintenance: grade C, Fair — worth a look.
Last published 635 days ago.
- BWeight: grade B, Good.
Pulls in 18 transitive packages, about 379 KB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding stop-iteration-iterator to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing stop-iteration-iterator, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 0.4
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the stop-iteration-iterator README.
var stopIterationIterator = require('stop-iteration-iterator');
var s = new Set([1, 2]);
var iterator = stopIterationIterator(s.keys());
iterator.next(); // { done: false, value: 1 }stop-iteration-iterator vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| stop-iteration-iteratorthis page | 69.2M | 1 | MIT | 1 year ago |
| p-locate | 216.9M | 1 | MIT | 1 day ago |
| filter-obj | 15.8M | 1 | MIT | 1 day ago |
| locate-path | 0 | 1 | MIT | 1 day ago |
| es-get-iterator | 0 | 1 | MIT | 1 day ago |
| p-map | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by stop-iteration-iterator v1.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (13)
Used by
Popular packages that depend on stop-iteration-iterator.
Relationship graph
Dependencies (left) and dependents (right) of stop-iteration-iterator.
Frequently installed together
Array#isArray for older browsers
An AST-based pattern checker for JavaScript.
Robustly `.call.bind()` a function
Is this an arguments object? It's a harder question than you think.
Get and robustly cache all JS language-level intrinsics at first require time
string representations of objects in node and the browser
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Release history
1 release in the last two years.
| Version | Published | Size | License |
|---|---|---|---|
| 1.1.0latest | 1 year ago | 11 KB | MIT |
| 1.0.0 | 3 years ago | 8.5 KB | MIT |
Overview
stop-iteration-iterator is an npm package that firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it. It is extremely widely used, with about 69.2M downloads per week and 1 known dependents in the graph. The latest version is 1.1.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (69.2M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Frequently asked questions
Should I use stop-iteration-iterator?
stop-iteration-iterator is usable, with caveats. Last published 635 days ago.
How do I install stop-iteration-iterator?
Run `npm install stop-iteration-iterator` to add stop-iteration-iterator to your npm project.
How many dependencies does stop-iteration-iterator have?
stop-iteration-iterator declares 15 direct dependencies and pulls in 18 packages in total once its runtime tree is resolved totalling about 379 KB on disk.
What license is stop-iteration-iterator released under?
stop-iteration-iterator is distributed under the MIT license.
How popular is stop-iteration-iterator?
stop-iteration-iterator has approximately 69,162,033 downloads per week and 1 known dependent packages.
Is stop-iteration-iterator still maintained?
The most recent release of stop-iteration-iterator (v1.1.0) was published 1 year ago.
Does stop-iteration-iterator run install scripts?
No. stop-iteration-iterator does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.