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

trie-louds

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trie-louds - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

bin/dump_trie.js
#!/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",

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