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

trie-array

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-array - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

6

package.json
{
"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}]
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