https://github.com/luckasnix/structured-objects
Structured Objects is lightweight and powerful library for handling object in JavaScript/TypeScript in different types of data structures.
https://github.com/luckasnix/structured-objects
data-structures graph javascript library typescript vite
Last synced: 9 months ago
JSON representation
Structured Objects is lightweight and powerful library for handling object in JavaScript/TypeScript in different types of data structures.
- Host: GitHub
- URL: https://github.com/luckasnix/structured-objects
- Owner: luckasnix
- License: mit
- Created: 2024-01-12T22:05:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T15:44:58.000Z (9 months ago)
- Last Synced: 2025-04-02T13:35:08.678Z (9 months ago)
- Topics: data-structures, graph, javascript, library, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 782 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Structured Objects
Structured Objects is lightweight and powerful library for handling object in JavaScript/TypeScript in different types of data structures.
## Installation
npm:
```bash
npm i @kasnix/structured-objects
```
Yarn:
```bash
yarn add @kasnix/structured-objects
```
pnpm:
```bash
pnpm add @kasnix/structured-objects
```
Deno:
```bash
deno add npm:@kasnix/structured-objects
```
Bun:
```bash
bun add @kasnix/structured-objects
```
## Usage
```typescript
import { ObjectGraph } from "@kasnix/structured-objects/object-graph";
type DataItem = {
id: string;
// ...
};
const dataList: Array = [/* ... */];
const dataGraph = new ObjectGraph(dataList, (dataItem) => dataItem.id);
```
## Documentation
- [Object Graph](./docs/object-graph.doc.md)