Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ip-instruments

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-instruments

[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors) [![Build Status](https://travis-ci.org/0xflotus/ip-instruments.svg?branch=master)](https://travis-ci.org/0xflotus/ip-instruments)

latest
Source
npmnpm
Version
0.0.15
Version published
Maintainers
1
Created
Source

ip-instruments

All Contributors Build Status

A library for interacting with IPv4

const { IPInstruments } = require("ip-instruments");

const IPInstruments = new IPInstruments();

console.log(IPInstruments.isPrivate("192.168.0.1")); // --> true
console.log(IPInstruments.isLocalhost("127.0.0.1")); // --> true
console.log(IPInstruments.generateRange("192.168.0.0", "192.168.0.4")); // ["192.168.0.0", "192.168.0.1", "192.168.0.2", "192.168.0.3", "192.168.0.4"]

Contributors

Thanks goes to these wonderful people (emoji key):

0xflotus
0xflotus

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

FAQs

Package last updated on 07 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts