šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

relatives-tree

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relatives-tree

Calculates families and nodes positions for rendering a family tree

3.2.2
latest
Source
npm
Version published
Weekly downloads
383
1.59%
Maintainers
0
Weekly downloads
Ā 
Created
Source

relatives-tree

A tiny library (~3.23 kB br) for calculating specific JSON data to family tree nodes and connectors.

šŸ–„ Here is a demo app with React rendering.

import calcTree from 'relatives-tree';

const tree = calcTree(json, { rootId });

The nodes & the connectors are simple JS objects, so you can use any rendering layer.

Usage

šŸ›  Canvas example
šŸ› ļø React example (react-family-tree source code)
šŸ› ļø Solid example

šŸ“ JSON data examples.

Contributing

Please read this documentation before contributing.

Keywords

family-tree

FAQs

Package last updated on 16 Mar 2025

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