Socket
Book a DemoInstallSign in
Socket

@kasnix/structured-objects

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kasnix/structured-objects

Structured Objects is lightweight and powerful library for handling object in JavaScript/TypeScript in different types of data structures.

Source
npmnpm
Version
1.5.0
Version published
Weekly downloads
49
-57.02%
Maintainers
1
Weekly downloads
 
Created
Source

Structured Objects

Structured Objects is lightweight and powerful library for handling object in JavaScript/TypeScript in different types of data structures.

Installation

npm:

npm i @kasnix/structured-objects

Yarn:

yarn add @kasnix/structured-objects

pnpm:

pnpm add @kasnix/structured-objects

Deno:

deno add npm:@kasnix/structured-objects

Bun:

bun add @kasnix/structured-objects

Usage

import { ObjectGraph } from "@kasnix/structured-objects/object-graph";

type DataItem = {
  id: string;
  // ...
};

const dataList: Array<DataItem> = [/* ... */];

const dataGraph = new ObjectGraph<DataItem>(dataList, (dataItem) => dataItem.id);

Documentation

  • Object Graph

Keywords

javascript

FAQs

Package last updated on 13 May 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