Create a netmask from an IP range
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 253
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
This is an awesome module for creating IP ranges from a given netmask, but it'd be even better if it worked in reverse, eg:
coffee> n = new netmask.Netmask('10.0.0.0/24')
{ bitmask: 24,
maskLong: 4294967040,
netLong: 167772160,
size: 256,
base: '10.0.0.0',
mask: '255.255.255.0',
hostmask: '0.0.0.255',
first: '10.0.0.1',
last: '10.0.0.254',
broadcast: '10.0.0.255' }
coffee> n = new netmask.Netmask('10.0.0.1', '10.0.0.254')
{ bitmask: 24,
maskLong: 4294967040,
netLong: 167772160,
size: 256,
base: '10.0.0.0',
mask: '255.255.255.0',
hostmask: '0.0.0.255',
first: '10.0.0.1',
last: '10.0.0.254',
broadcast: '10.0.0.255' }
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Netmask constructor and the existing netmask-based range parsing entry point. Trace how the module derives the network properties shown in the example, then define the expected behavior for constructing a Netmask from the first and last IP addresses. Done means both constructor forms produce the same displayed values for the example range.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100