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

aho-corasick2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aho-corasick2 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

index.js

@@ -16,1 +16,2 @@ "use strict";

module.exports = ahocorasick_1.AhoCorasick;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7Ozs7QUFFSCxxQ0FBaUM7QUFDakMsYUFBYTtBQUNiLG1EQUFxRTtBQUNyRSx1Q0FBaUM7QUFLakMsYUFBYTtBQUNiLGtCQUFlLHlCQUFXLENBQUE7QUFLMUIsT0FBTyxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMseUJBQVcsRUFBRSxPQUFPLENBQUMsQ0FBQztBQUY5QyxpQkFBUyx5QkFBVyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDcmVhdGVkIGJ5IHVzZXIgb24gMjAxOC83LzMvMDAzLlxuICovXG5cbmltcG9ydCB7IFRyaWUgfSBmcm9tICcuL3NyYy90cmllJ1xuLy8gQHRzLWlnbm9yZVxuaW1wb3J0IHsgQWhvQ29yYXNpY2ssIElBaG9Db3Jhc2lja0NhbGxiYWNrIH0gZnJvbSAnLi9zcmMvYWhvY29yYXNpY2snXG5leHBvcnQgKiBmcm9tICcuL3NyYy9haG9jb3Jhc2ljaydcblxuLy8gQHRzLWlnbm9yZVxuZXhwb3J0IHsgQWhvQ29yYXNpY2ssIFRyaWUsIElBaG9Db3Jhc2lja0NhbGxiYWNrIH1cblxuLy8gQHRzLWlnbm9yZVxuZXhwb3J0IGRlZmF1bHQgQWhvQ29yYXNpY2tcblxuLy8gQHRzLWlnbm9yZVxuZXhwb3J0ID0gQWhvQ29yYXNpY2tcblxuZXhwb3J0cyA9IE9iamVjdC5hc3NpZ24oQWhvQ29yYXNpY2ssIGV4cG9ydHMpO1xuIl19

2

package.json
{
"name": "aho-corasick2",
"version": "1.0.1",
"version": "1.0.2",
"description": "Aho–Corasick string matching algorithm",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,9 +0,13 @@

# About
# aho-corasick2
> aho-corasick2 - Aho–Corasick string matching algorithm
aho-corasick2 - Aho–Corasick string matching algorithm
#Installation
## Installation
$ npm install aho-corasick2
## 應用
* [應用於小說翻譯時](tests/novel.ts)
## Example

@@ -21,12 +25,14 @@

```ts
var ac, actual, i, len, ref, word;
var i, len, ref, word;
ac = new AhoCorasick();
var ac = new AhoCorasick();
ref = ['say', 'she', 'shr', 'he', 'her'];
for (i = 0, len = ref.length; i < len; i++) {
word = ref[i];
ac.add(word, {
word: word
});
ref = ['say', 'she', 'shr', 'he', 'her', 'h', 'hers', 'his'];
for (i = 0, len = ref.length; i < len; i++)
{
word = ref[i];
ac.add(word, {
word: word
});
}

@@ -41,11 +47,14 @@

actual = {};
let actual = ac.search('yasherhs');
/*
{ matches: { h: [ 3, 6 ], she: [ 2 ], he: [ 3 ], her: [ 3 ] },
positions: { '2': [ 'she' ], '3': [ 'h', 'he', 'her' ], '6': [ 'h' ] },
count: { h: 2, she: 1, he: 1, her: 1 },
data:
{ h: [ { word: 'h' } ],
she: [ { word: 'she' } ],
he: [ { word: 'he' } ],
her: [ { word: 'her' } ] } }
*/
ac.search('yasherhs', function(found_word) {
if (actual[found_word] == null) {
actual[found_word] = 0;
}
return actual[found_word]++;
});
console.dir(actual, {

@@ -52,0 +61,0 @@ depth: null,

@@ -153,1 +153,2 @@ "use strict";

exports.default = AhoCorasick;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWhvY29yYXNpY2suanMiLCJzb3VyY2VSb290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FjazogKHRyaWU6IHRoaXMsIG5vZGU6IFRyaWU8VD4pID0+IHZvaWQpXG5cdHtcblx0XHRsZXQgbm9kZSwgX2ssIF9yZWYsIF9yZWYxO1xuXHRcdF9yZWYgPSB0aGlzLm5leHQ7XG5cdFx0Zm9yIChfayBpbiBfcmVmKVxuXHRcdHtcblx0XHRcdG5vZGUgPSBfcmVmW19rXTtcblx0XHRcdGNhbGxiYWNrKHRoaXMsIG5vZGUpO1xuXHRcdH1cblx0XHRfcmVmMSA9IHRoaXMubmV4dDtcblx0XHRmb3IgKF9rIGluIF9yZWYxKVxuXHRcdHtcblx0XHRcdG5vZGUgPSBfcmVmMVtfa107XG5cdFx0XHRub2RlLmVhY2hfbm9kZShjYWxsYmFjayk7XG5cdFx0fVxuXHRcdHJldHVybiB0aGlzO1xuXHR9XG59XG5cbmV4cG9ydCBkZWZhdWx0IFRyaWVcbiJdfQ==
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