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

flat-tree-builder

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flat-tree-builder

A package for building tree structures from postgres ltree data

  • 1.5.5
  • npm
  • Socket score

Version published
Weekly downloads
100
increased by138.1%
Maintainers
1
Weekly downloads
 
Created
Source

Classifier

Only for es module, only for Postgres ltree data

Testing

npm i
npm t

Integration

Download

npm i flat-tree-builder

html

  • Create an element on the page where the element will be embedded, assign an id to the element

js

  • Import the Classifier class from classifier.js
  • Create an instance of the Classifier class, where the first parameter is the item id and the second parameter is the object with the parameters

css

  • Connect the classifier.css file
  • Connect bootstrap

Params object

  • getUrl: url for get
  • postClassifierUrl: url for post
  • search: if the classifier is used for searching
  • test: run with test data
  • selectedIds: array of id's to be drawn initially
  • draggable: drag and drop list items

Example

<link
  rel="stylesheet"
  href="./node_modules/bootstrap/dist/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="./node_modules/flat-tree-builder/classifier.css" />

<div id="test"></div>
import Classifier from "flat-tree-builder";

const classifier = new Classifier("#test", {
  test: true,
  search: true,
});

FAQs

Package last updated on 02 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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