Comparing version 1.0.0 to 1.0.1
#!/usr/bin/env node | ||
require('../dist/dump_trie.js'); | ||
const {main} = require('../dist/dump_trie.js'); | ||
main(); |
@@ -1,1 +0,1 @@ | ||
export {}; | ||
export declare const main: () => Promise<0 | undefined>; |
@@ -42,3 +42,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* istanbul ignore file */ | ||
exports.main = void 0; | ||
var yargs_1 = __importDefault(require("yargs")); | ||
@@ -48,20 +48,35 @@ var fs_1 = require("fs"); | ||
var readline_1 = require("readline"); | ||
var argv = yargs_1.default | ||
.option('input', { | ||
description: 'keywords file (one keyword per line)', | ||
demandOption: true, | ||
type: 'string' | ||
}) | ||
.option('output', { | ||
description: 'output file', | ||
demandOption: true, | ||
type: 'string' | ||
}) | ||
.help() | ||
.argv; | ||
(function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var byteLength, entries, data, indices, tree; | ||
exports.main = function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var argv, byteLength, entries, data, indices, tree; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
try { | ||
argv = yargs_1.default(process.argv.slice(2)) | ||
.option('input', { | ||
description: 'keywords file (one keyword per line)', | ||
demandOption: true, | ||
type: 'string' | ||
}) | ||
.option('output', { | ||
description: 'output file', | ||
demandOption: true, | ||
type: 'string' | ||
}) | ||
.help() | ||
.exitProcess(false) | ||
.fail(function (msg, err, yargs) { | ||
if (err) | ||
throw err; | ||
console.error(msg); | ||
console.error(yargs.help()); | ||
throw null; | ||
}) | ||
.argv; | ||
} | ||
catch (err) { | ||
if (err) | ||
console.error(err); | ||
return [2 /*return*/, 0]; | ||
} | ||
byteLength = 0; | ||
@@ -115,2 +130,2 @@ entries = 0; | ||
}); | ||
}); })(); | ||
}); }; |
@@ -32,3 +32,2 @@ "use strict"; | ||
var obj = new this(); | ||
/* istanbul ignore next */ | ||
if (verbose) | ||
@@ -42,3 +41,2 @@ obj.tree.verbose = true; | ||
var obj = new this(); | ||
/* istanbul ignore next */ | ||
if (verbose) | ||
@@ -45,0 +43,0 @@ obj.tree.verbose = true; |
{ | ||
"name": "trie-louds", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Readonly but memory-sufficient data structure for dictionaries", | ||
@@ -17,2 +17,12 @@ "main": "./dist/index.js", | ||
"license": "MIT", | ||
"keywords": [ | ||
"trie", | ||
"search", | ||
"prefix", | ||
"LOUDS", | ||
"dictionary", | ||
"map" | ||
], | ||
"homepage": "https://github.com/Yosshi999/trie-louds", | ||
"repository": "Yosshi999/trie-louds", | ||
"devDependencies": { | ||
@@ -19,0 +29,0 @@ "@types/jest": "^25.2.3", |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
53616
1228
0