Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "trie-array", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Keeps your data sorted in trie", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/fraczak/trie.git" | ||
"url": "https://github.com/fraczak/trie-array.git" | ||
}, | ||
@@ -21,3 +21,3 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/fraczak/trie/issues" | ||
"url": "https://github.com/fraczak/trie-array/issues" | ||
}, | ||
@@ -24,0 +24,0 @@ "dependencies": {}, |
@@ -1,8 +0,11 @@ | ||
trie | ||
==== | ||
trie-array | ||
========== | ||
Simple and fast implementation of a `trie`, <https://en.wikipedia.org/wiki/Trie>. | ||
Simple and fast implementation of a `trie`, | ||
<https://en.wikipedia.org/wiki/Trie>. Using it you keep your | ||
collection sorted by `key` and indexed as in array. | ||
To install: | ||
npm install git://github.com/fraczak/trie.git | ||
npm install trie-array | ||
@@ -19,19 +22,15 @@ To use in coffee script: | ||
trie.add elem = { word: "IS", status: "transient" } | ||
trie.findByKey 'IS' | ||
## finds all objects with key 'IS' | ||
## -> {"pos":4,"res":[{"word":"is","index":2},{"word":"IS","status":"transient"}]} | ||
trie.del elem | ||
trie.getNth 3 | ||
## gets the 3rd element in 'key' order | ||
## -> {"word":"hero","index":7} | ||
trie.getAt 4, 2 | ||
## gets 2 elements starting at position 4 | ||
## -> [{"word":"is","index":2},{"word":"of","index":4}] | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
11486
6
69
36
1