Skip to content

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

License

Notifications You must be signed in to change notification settings

luckasnix/structured-objects

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks