JSPM

trie-data-structure

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2294
  • Score
    100M100P100Q124539F
  • License MIT

A node module with a simple trie data structure, support for insert and search functions

Package Exports

  • trie-data-structure

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (trie-data-structure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Trie Data Structure

Trie implementation in javascript, with insert and search functions

Installation

npm install trie-data-structure --save

Usage

var trie = require('trie')

trie.build(["apple","orange","yellow","black"]);

console.log('search for part word "app", returns : ' + trie.search("app")[0]);

Tests

npm test

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 1.0.4 Initial release