cidr-tools
Advanced tools
Comparing version 0.2.3 to 0.2.5
11
index.js
@@ -19,3 +19,6 @@ "use strict"; | ||
fs.unlink(netfile); | ||
}).catch(reject); | ||
}).catch(function(err) { | ||
resolve(err); | ||
fs.unlink(netfile); | ||
}); | ||
}).catch(reject); | ||
@@ -37,3 +40,7 @@ }); | ||
fs.unlink(excludefile); | ||
}).catch(reject); | ||
}).catch(function(err) { | ||
resolve(err); | ||
fs.unlink(basefile); | ||
fs.unlink(excludefile); | ||
}); | ||
}).catch(reject); | ||
@@ -40,0 +47,0 @@ }).catch(reject); |
{ | ||
"name": "cidr-tools", | ||
"version": "0.2.3", | ||
"version": "0.2.5", | ||
"author": "silverwind <me@silverwind.io>", | ||
@@ -9,4 +9,4 @@ "description": "Tools to work with IPv4 and IPv6 CIDR network lists", | ||
"scripts": { | ||
"test": "ava", | ||
"postinstall": "bash install.sh" | ||
"test": "eslint *.js && ava", | ||
"postinstall": "pip3 install -t python_modules netaddr" | ||
}, | ||
@@ -37,4 +37,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "^0.18.1" | ||
"ava": "^0.18.1", | ||
"eslint": "^3.15.0" | ||
} | ||
} |
# cidr-tools | ||
[![](https://img.shields.io/npm/v/cidr-tools.svg?style=flat)](https://www.npmjs.org/package/cidr-tools) | ||
[![](https://img.shields.io/npm/dm/cidr-tools.svg)](https://www.npmjs.org/package/cidr-tools) | ||
[![](https://api.travis-ci.org/silverwind/cidr-tools.svg?style=flat)](https://travis-ci.org/silverwind/cidr-tools) | ||
> Tools to work with IPv4 and IPv6 CIDR network lists | ||
## Install | ||
With `python3` and `pip3` available: | ||
@@ -11,3 +12,3 @@ | ||
``` | ||
## Usage | ||
## Example | ||
@@ -14,0 +15,0 @@ ```js |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
7762
43
46
2
6