Is valid ip
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to check if a given string is a valid ip using this library?
For example:
````javascript
const ip = require('ip');
ip.isValid('google.com'); // false
ip.isValid('216.58.194.206'); // true
ip.isValid('2607:f8b0:4005:804::200e'); // true
````
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 from the library's public API and existing IP parsing or conversion behavior. Check how IPv4 and IPv6 strings are currently handled, then add the requested validity check and verify that the three examples produce the stated results, including rejecting google.com.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100