</>PackageGraphPackageGraph

stop-iteration-iterator

npmv1.1.0TypeScript

Firefox 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.

2
Direct dependencies

Runtime packages this one declares itself.

18
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

379 KB
Install size

Unpacked size of this package plus its entire runtime tree.

5
Tree depth

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

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
stop-iteration-iteratorthis page69.2M1MIT1 year ago
p-locate216.9M1MIT1 day ago
filter-obj15.8M1MIT1 day ago
locate-path01MIT1 day ago
es-get-iterator01MIT1 day ago
p-map01MIT1 day ago

Dependencies

Declared by stop-iteration-iterator v1.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

@arethetypeswrong/cli ^0.17.1@ljharb/eslint-config ^21.1.1@ljharb/tsconfig ^0.2.2@types/tape ^5.6.5auto-changelog ^2.5.0encoding ^0.1.13eslint =8.8.0in-publish ^2.0.1npmignore ^0.3.1nyc ^10.3.2safe-publish-latest ^2.0.0tape ^5.9.0typescript next

Used by

Popular packages that depend on stop-iteration-iterator.

Relationship graph

Dependencies (left) and dependents (right) of stop-iteration-iterator.

es-errorsinternal-slotes-get-iteratorstop-iteration-it…
stop-iteration-iterator dependencies dependents

Frequently installed together

Release history

1 release in the last two years.

Recent versions of stop-iteration-iterator
VersionPublishedSizeLicense
1.1.0latest1 year ago11 KBMIT
1.0.03 years ago8.5 KBMIT

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.