Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ip-bigint

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-bigint - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

index.js
"use strict";
const isIp = require("is-ip");
const isIP = require("is-ip");
const ipv6Normalize = require("ipv6-normalize");

@@ -10,3 +10,3 @@

module.exports.parse = ip => {
const version = isIp.version(ip);
const version = isIP.version(ip);
if (![4, 6].includes(version)) throw new Error(`Invalid IP address: ${ip}`);

@@ -13,0 +13,0 @@

{
"name": "ip-bigint",
"version": "2.0.0",
"version": "2.0.1",
"description": "Convert IPv4 and IPv6 addresses to native BigInt and vice-versa",

@@ -14,2 +14,5 @@ "author": "silverwind <me@silverwind.io>",

},
"files": [
"index.js"
],
"dependencies": {

@@ -20,10 +23,8 @@ "ipv6-normalize": "1.0.1",

"devDependencies": {
"eslint": "6.0.1",
"eslint-config-silverwind": "4.0.2",
"updates": "8.2.1",
"ver": "5.1.2"
"eslint": "7.7.0",
"eslint-config-silverwind": "18.0.3",
"updates": "10.3.5",
"jest": "26.4.1",
"versions": "8.4.3"
},
"files": [
"index.js"
],
"keywords": [

@@ -30,0 +31,0 @@ "ip",

# ip-bigint
[![](https://img.shields.io/npm/v/ip-bigint.svg?style=flat)](https://www.npmjs.org/package/ip-bigint) [![](https://img.shields.io/npm/dm/ip-bigint.svg)](https://www.npmjs.org/package/ip-bigint) [![](https://api.travis-ci.org/silverwind/ip-bigint.svg?style=flat)](https://travis-ci.org/silverwind/ip-bigint)
[![](https://img.shields.io/npm/v/ip-bigint.svg?style=flat)](https://www.npmjs.org/package/ip-bigint) [![](https://img.shields.io/npm/dm/ip-bigint.svg)](https://www.npmjs.org/package/ip-bigint)
> Convert IPv4 and IPv6 addresses to native BigInt and vice-versa
## Installation
## Install
```
$ npm i ip-bigint
npm i ip-bigint
```

@@ -11,0 +11,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc