
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
html-decision-tree
Advanced tools
This is a generic library for building a simple web-based decision trees UI. Data is provided in JSON format, which is then displayed on a website.
The code is in Typescript. After cloning the repository, just type
npm install
npm run-script build
This builds the decisiontree.js
library in dist
.
Alternative build is done using typescript and webpack:
npx tsc
npx webpack
Or simply install the package using
npm install html-decision-tree
Here is a very simple decision tree for deciding if you should play tennis:
Here is the corresponding flow chart decision tree for deciding if you should play tennis in SVG
and in JSON format.
Current node format in some pseudo grammar:
{
type: binary|nary|null,
value: 0-9+,
title: \w*,
content: \w*,
labels: [{
text: \w*,
value: 0-9+,
}],
children: [node*],
action: URL
}
The idea is nary nodes have content (that is the description on the radio button) which is linked via the value to the children . Binary nodes have default description content as Yes (0) and No (1). Actions are only considered in leaf nodes and open a new Tab.
FAQs
Image Description Decision Tree
The npm package html-decision-tree receives a total of 3 weekly downloads. As such, html-decision-tree popularity was classified as not popular.
We found that html-decision-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.