{"id":23366740,"url":"https://github.com/d8corp/watch-state-utils","last_synced_at":"2026-01-21T01:10:20.729Z","repository":{"id":90515663,"uuid":"371938436","full_name":"d8corp/watch-state-utils","owner":"d8corp","description":"Utils to use watch-state","archived":false,"fork":false,"pushed_at":"2025-11-02T20:53:10.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-02T22:14:26.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/d8corp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-05-29T10:02:54.000Z","updated_at":"2025-11-02T20:53:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3a1ba26-4f06-4b8a-aafa-5a3dc420856d","html_url":"https://github.com/d8corp/watch-state-utils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/d8corp/watch-state-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d8corp","download_url":"https://codeload.github.com/d8corp/watch-state-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28620576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-21T14:17:31.728Z","updated_at":"2026-01-21T01:10:20.723Z","avatar_url":"https://github.com/d8corp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ca href=\"https://github.com/d8corp/watch-state\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/d8corp/watch-state/v3.3.1/img/logo.svg\" align=\"left\" width=\"90\" height=\"90\" alt=\"InnetJs logo by Mikhail Lysikov\"\u003e\n\u003c/a\u003e\n\n# \u0026nbsp; @watch-state/utils\n\n\u0026nbsp;\n\n[![NPM](https://img.shields.io/npm/v/@watch-state/utils.svg)](https://www.npmjs.com/package/@watch-state/utils)\n[![downloads](https://img.shields.io/npm/dm/@watch-state/utils.svg)](https://www.npmtrends.com/@watch-state/utils)\n[![tests](https://img.shields.io/github/actions/workflow/status/d8corp/watch-state-utils/node.js.yml?branch=main\u0026label=tests\n)](https://github.com/d8corp/watch-state-utils/actions/workflows/node.js.yml)\n[![changelog](https://img.shields.io/badge/Changelog-⋮-brightgreen)](https://changelogs.xyz/@watch-state/utils)\n[![license](https://img.shields.io/npm/l/@watch-state/utils)](https://github.com/d8corp/watch-state-utils/blob/main/LICENSE)\n\n## Index\n\n## Overview\n`@watch-state/utils` is a utility package for [watch-state](https://github.com/d8corp/watch-state).\n\n[![stars](https://img.shields.io/github/stars/d8corp/watch-state-utils?style=social)](https://github.com/d8corp/watch-state-utils/stargazers)\n[![watchers](https://img.shields.io/github/watchers/d8corp/watch-state-utils?style=social)](https://github.com/d8corp/watch-state-utils/watchers)\n\n\n## Index\n\n\u003csup\u003e[Install](#install) • [use](#use) • [inject](#inject)\u003c/sup\u003e\n\n\n## Install\n###### [🏠︎](#index) / Install\n\nTo get started with this package, run the following command:\n\n```shell\nnpm i @watch-state/utils\n```\n\n## use\n###### [🏠︎](#index) / use\n\nThe `use` function helps you retrieve the current value from an observable.\n\n```shell\nimport { State } from 'watch-state'\nimport { use } from '@watch-state/utils'\n\nconst name = new State('Mike')\n\nconsole.log(use(name)) // 'Mike'\n```\n\n## inject\n###### [🏠︎](#index) / inject\n\nThe `inject` function allows you to transform observable value using a callback.\n\n```shell\nimport { State } from 'watch-state'\nimport { inject } from '@watch-state/utils'\n\nconst name = new State('Mike')\n\nconsole.log(inject('Mike', name =\u003e `Name: ${name}`)) // 'Name: Mike'\nconsole.log(inject(name, name =\u003e `Name: ${name}`)) // () =\u003e 'Name: Mike'\n```\n\n## Links\nYou can find more tools [here](https://www.npmjs.com/search?q=%40watch-state)\n\n## Issues\nIf you find a bug or have a suggestion, please file an issue on [GitHub](https://github.com/d8corp/watch-state-utils/issues)\n\n[![issues](https://img.shields.io/github/issues-raw/d8corp/watch-state-utils)](https://github.com/d8corp/watch-state-utils/issues)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Fwatch-state-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd8corp%2Fwatch-state-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Fwatch-state-utils/lists"}