daq-proc
Advanced tools
Comparing version 7.0.1 to 7.0.2
{ | ||
"name": "daq-proc", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "Simple document processor to make search running in the browser and node.js a little better. Supports 50+ languages. Removes stopwords (smaller index and less irrelevant hits), extract keywords to filter on and prepares ngrams for auto-complete functionality.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/daq-proc.cjs.js", |
@@ -38,3 +38,3 @@ # daq-proc | ||
```HTML | ||
<script src="https://cdn.jsdelivr.net/npm/daq-proc@/dist/daq-proc.umd.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/daq-proc/dist/daq-proc.umd.min.js"></script> | ||
@@ -88,7 +88,10 @@ <script> | ||
```HTML | ||
<script src="daq-proc.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/daq-proc/dist/daq-proc.umd.min.js"></script> | ||
<script> | ||
// exposing the underlying libraries in a transparent way | ||
const {cheerio, ehp, highlight, lvm, ngraminator, sw, wnn} = dqp | ||
const { | ||
highlight, | ||
levenMatch | ||
} = dqp | ||
@@ -105,3 +108,3 @@ const query = ['interesting', 'words'] | ||
lvm.levenMatch(query, index, {distance: 2}) | ||
levenMatch(query, index, {distance: 2}) | ||
// returns: | ||
@@ -108,0 +111,0 @@ //[ [ 'query' ], [ 'word', 'words' ], [ 'levenshtein' ] ] |
5722582
128