Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement takeStream, takeStreamUntil and takeStreamWhile (including versions starting from last IP) for IPv4 and IPv6 ranges #30

Open
dadepo opened this issue Jun 16, 2019 · 0 comments
Projects

Comments

@dadepo
Copy link
Member

dadepo commented Jun 16, 2019

  1. takeStream(count?: number):
    Return a stream of IP starting from the first up until the optional count. If count is not given, return till the last.

  2. takeStreamUntil(ip: IPv4 | IPv6):
    Return a stream of IP starting from the first up until the given IP

  3. takeStreamWhile(predicate: (IPv4 | IPv6) => boolean)
    Return a stream of IP starting from the first up until the given predicate returns false

  4. takeLastStream(count?: number): Return the last count values from the IP range.
    Return a stream of IP starting from the last up until the optional count. If count is not given, return till the first.

  5. takeLastStreamUntil(ip: IPv4 | IPv6)
    Return a stream of IP starting from the last up until the given IP

  6. takeLastStreamWhile(predicate: (IPv4 | IPv6) => boolean)
    Return a stream of IP starting from the last up until the given predicate returns false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v1.3.0
  
To do
Development

No branches or pull requests

1 participant