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

enamdict

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enamdict - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

download-enamdict.js

@@ -13,3 +13,3 @@ /**

// The default URL where the enamdict file is located
var enamdictURL = "http://ftp.monash.edu.au/pub/nihongo/enamdict.gz";
var enamdictURL = "http://ftp.edrdg.org/pub/Nihongo/enamdict.gz";

@@ -16,0 +16,0 @@ // Download the ENMADICT database

{
"name": "enamdict",
"version": "0.1.7",
"version": "0.1.8",
"description": "Efficiently query ENAMDICT using Node.js.",

@@ -27,8 +27,8 @@ "main": "enamdict.js",

"dependencies": {
"concat-stream": "1.5.2"
"concat-stream": "2.0.0"
},
"devDependencies": {
"iconv": "2.3.5",
"request": "2.78.0"
"iconv": "3.0.1",
"request": "2.88.2"
}
}

@@ -48,3 +48,3 @@ node-enamdict

When this package is installed a copy of ENAMDICT is downloaded from [ftp.monash.edu.au](http://ftp.monash.edu.au/pub/nihongo/enamdict.gz), if it doesn't already exist. A couple optimizations are performed in order to speed up search time and to decrease the file size of the dictionary.
When this package is installed a copy of ENAMDICT is downloaded from [ftp.edrdg.org](http://ftp.edrdg.org/pub/Nihongo/enamdict.gz), if it doesn't already exist. A couple optimizations are performed in order to speed up search time and to decrease the file size of the dictionary.

@@ -51,0 +51,0 @@ * To start, ENAMDICT is converted from a EUC-JP encoding to the more-widely-used UTF-8 encoding.

@@ -10,9 +10,9 @@ var enamdict = require("./enamdict");

//console.log(keys);
//console.log("amano", enamdict.lookup("amano").type());
//console.log("kazami", enamdict.lookup("kazami").type());
//console.log("andoo", enamdict.lookup("andoo").type());
//console.log("ando", enamdict.lookup("ando").type());
//console.log("hiroshige", enamdict.lookup("hiroshige").type());
//console.log("sharaku", enamdict.lookup("sharaku"));
//console.log("tooshuusai", enamdict.lookup("tooshuusai").type());
console.log("amano", enamdict.find("amano").type());
console.log("kazami", enamdict.find("kazami").type());
console.log("andoo", enamdict.find("andoo").type());
console.log("ando", enamdict.find("ando").type());
console.log("hiroshige", enamdict.find("hiroshige").type());
console.log("sharaku", enamdict.find("sharaku"));
console.log("tooshuusai", enamdict.find("tooshuusai").type());
//console.log(keys.length);

@@ -23,3 +23,3 @@ console.log(enamdict.find("andou").data);

// enamdict.lookupKanji("安藤")
// enamdict.findKanji("安藤")

@@ -26,0 +26,0 @@ // To Test:

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