{"id":17342788,"url":"https://github.com/inambe/hotvar-js","last_synced_at":"2025-10-16T05:02:43.564Z","repository":{"id":255698312,"uuid":"851332391","full_name":"Inambe/hotvar-js","owner":"Inambe","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-06T16:21:35.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T14:17:00.028Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inambe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-02T22:37:19.000Z","updated_at":"2024-09-06T16:21:27.000Z","dependencies_parsed_at":"2024-09-06T19:35:19.767Z","dependency_job_id":"d9f765f0-8e5d-4e7a-ac84-156cc278bae4","html_url":"https://github.com/Inambe/hotvar-js","commit_stats":null,"previous_names":["inambe/hotvar-js"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inambe%2Fhotvar-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inambe%2Fhotvar-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inambe%2Fhotvar-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inambe%2Fhotvar-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inambe","download_url":"https://codeload.github.com/Inambe/hotvar-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245814747,"owners_count":20676808,"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":[],"created_at":"2024-10-15T16:07:03.163Z","updated_at":"2025-10-16T05:02:38.520Z","avatar_url":"https://github.com/Inambe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hotvar-js\n\nNPM package to use [hotvar.com](https://hotvar.com) in JavaScript environments.\n\n# What's included?\n\nThis package exports `HotVar` class which allows using of \"variables\" created on [hotvar.com](https://hotvar.com)\n\n## `HotVar` class\n\n### `constructor(options: Partial\u003cConfig\u003e = {})`\n\nThe constructor takes a config object. Here's the config object with defaults:\n\n```\nconst onVar new HotVar({\n    /*\n        enable real-time updates\n    */\n    live: false,\n\n    /*\n        default variables to get values of / listen\n    */\n    vars: [],\n\n    /*\n        the mode it's running in. `html` indicates it'll search for variables in the page and replace their contents with variables' values\n    */\n    mode: \"html\",\n\n    /*\n        function that gets called every time there's an update for variables. also runs when it first fetches the values\n    */\n    onChange: undefined\n})\n```\n\n### `fetchMany(varNames: string[]): Values`\n\n### `fetchOne(varName: string): ValueResponse`\n\n### `destroy(): void`\n\nDestroys socket connection if `live` was `true`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finambe%2Fhotvar-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finambe%2Fhotvar-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finambe%2Fhotvar-js/lists"}