Comparing version 0.1.4 to 0.1.5
/** | ||
* Utility for downloading the latest ENAMDICT, converting it to the right | ||
* encoding, re-formatting it, and saving as a compressed file. | ||
* encoding, re-formatting it, and outputting it to STDOUT. | ||
*/ | ||
@@ -15,11 +15,2 @@ var enamdict = require("./enamdict"); | ||
try { | ||
fs.statSync(enamdict.enamdictFile); | ||
process.exit(0); | ||
} catch(e) { | ||
// If it doesn't exist then we need to download the dict | ||
} | ||
console.log("Downloading ENAMDICT..."); | ||
// Download the ENMADICT database | ||
@@ -34,26 +25,6 @@ var stream = request(enamdictURL) | ||
enamdict.init(stream, function() { | ||
console.log("Processing..."); | ||
// And then convert it to the desired file format | ||
enamdict.process(function(err, data) { | ||
console.log("Outputting..."); | ||
// Write out the result to a file! | ||
// Stick the string into the stream. | ||
var stream = new Stream(); | ||
stream.pipe = function(dest) { | ||
dest.write(data); | ||
return dest; | ||
}; | ||
stream | ||
// Make sure it's gzipped | ||
.pipe(zlib.createGzip()) | ||
// Write it out to a file | ||
.pipe(fs.createWriteStream(enamdict.enamdictFile)) | ||
.on("end", function() { | ||
console.log("DONE"); | ||
}); | ||
return console.log(data); | ||
}); | ||
}); |
{ | ||
"name": "enamdict", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Efficiently query ENAMDICT using Node.js.", | ||
@@ -8,3 +8,3 @@ "main": "enamdict.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"install": "node download-enamdict.js" | ||
"update": "node download-enamdict.js | gzip > enamdict.gz" | ||
}, | ||
@@ -28,6 +28,6 @@ "repository": { | ||
"dependencies": { | ||
"concat-stream": "~1.5.2", | ||
"iconv": "^2.1.11", | ||
"request": "~2.75.0" | ||
"concat-stream": "1.5.2", | ||
"iconv": "2.2.1", | ||
"request": "2.78.0" | ||
} | ||
} |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
1
2985506
9
331
+ Addedform-data@2.1.4(transitive)
+ Addediconv@2.2.1(transitive)
+ Addedqs@6.3.3(transitive)
+ Addedrequest@2.78.0(transitive)
- Removedbl@1.1.2(transitive)
- Removedform-data@2.0.0(transitive)
- Removediconv@2.3.5(transitive)
- Removedqs@6.2.4(transitive)
- Removedrequest@2.75.0(transitive)
Updatedconcat-stream@1.5.2
Updatediconv@2.2.1
Updatedrequest@2.78.0