{"id":22323313,"url":"https://github.com/tripolskypetr/functools-kit","last_synced_at":"2025-03-26T05:22:07.834Z","repository":{"id":261963276,"uuid":"885837490","full_name":"tripolskypetr/functools-kit","owner":"tripolskypetr","description":"A library with helpers for react-declarative app backend development","archived":false,"fork":false,"pushed_at":"2025-03-16T14:18:17.000Z","size":404,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T15:26:47.212Z","etag":null,"topics":["functional-programming","helpers","lambda","react-declarative","serverless"],"latest_commit_sha":null,"homepage":"https://github.com/react-declarative/react-declarative","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tripolskypetr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-09T14:27:21.000Z","updated_at":"2025-03-16T14:18:21.000Z","dependencies_parsed_at":"2024-12-26T13:25:50.092Z","dependency_job_id":"663daf6c-8cb5-4195-8068-962181b25eb1","html_url":"https://github.com/tripolskypetr/functools-kit","commit_stats":null,"previous_names":["tripolskypetr/func-kit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripolskypetr%2Ffunctools-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripolskypetr%2Ffunctools-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripolskypetr%2Ffunctools-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripolskypetr%2Ffunctools-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tripolskypetr","download_url":"https://codeload.github.com/tripolskypetr/functools-kit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245592683,"owners_count":20640883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functional-programming","helpers","lambda","react-declarative","serverless"],"created_at":"2024-12-04T01:09:52.134Z","updated_at":"2025-03-26T05:22:07.815Z","avatar_url":"https://github.com/tripolskypetr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# func-kit\n\n\u003e A library with helpers for [react-declarative](https://github.com/react-declarative/react-declarative) app backend development\n\n## What inside\n\nThe complete description is available [by this link](https://github.com/react-declarative/react-declarative/blob/master/docs/code/UTILS.md). This npm module exports the following TypeScript definitions:\n \n1. **Utility Functions** : \n\n  - `randomString`: Generates a random string using UUID.\n \n  - `compareFulltext\u003cT\u003e`: Compares a search term against a data object.\n \n  - `compareArray`: Checks if two arrays are equal.\n \n  - `isObject`: Verifies if a value is an object.\n \n  - `formatText`: Formats a string based on a template with customizable options.\n \n  - `singleshot` and `singlerun`: Functions that run once and allow clearing/resetting.\n \n  - `debounce`: Creates a debounced version of a function.\n \n  - `retry`: Retries a function multiple times until it succeeds.\n \n  - `deepFlat`: Deep flattens an array.\n \n  - `memoize`: Caches function results based on argument changes.\n \n  - `trycatch`: Wraps a function with a try-catch block.\n \n  - `sleep`: Delays execution by a specified time.\n \n  - `cancelable`, `queued`, `execpool`: Wrappers for promise-based functions with enhanced functionality like cancellation and concurrency control.\n \n  - `createAwaiter`: Creates an awaitable promise and returns resolve and reject out of the closure.\n \n2. **Interfaces and Types** : \n\n  - `IParams`, `IClearable`, `ITaskStatus`, `ICounted`, `IError`, and various `IWrappedFn` types for defining functionalities related to tasks, observers, and clearing mechanisms.\n \n  - `TObserver`, `TSubject`, `TObservable`, `TBehaviorSubject`: Types representing observer and subject patterns for handling observable data streams.\n \n3. **Classes** : \n\n  - `Task`: Represents a task with status tracking.\n \n  - `Observer`, `Subject`, `BehaviorSubject`: Classes implementing observer/observable patterns.\n \n  - `EventEmitter`: Provides event management capabilities.\n \n  - `Operator`, `Source`: Utility classes for creating and manipulating observers.\n \n4. **Constants** : \n\n  - `CANCELED_PROMISE_SYMBOL`: A unique symbol representing cancellation status.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripolskypetr%2Ffunctools-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftripolskypetr%2Ffunctools-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripolskypetr%2Ffunctools-kit/lists"}