{"id":15996309,"url":"https://github.com/zkat/dynvar","last_synced_at":"2025-06-25T07:09:10.703Z","repository":{"id":57232120,"uuid":"39317236","full_name":"zkat/dynvar","owner":"zkat","description":"Dynamic variables for JS","archived":false,"fork":false,"pushed_at":"2015-07-19T00:37:49.000Z","size":112,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T17:21:21.464Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkat.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}},"created_at":"2015-07-19T00:36:59.000Z","updated_at":"2015-09-17T17:04:23.000Z","dependencies_parsed_at":"2022-08-31T14:10:19.510Z","dependency_job_id":null,"html_url":"https://github.com/zkat/dynvar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zkat/dynvar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fdynvar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fdynvar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fdynvar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fdynvar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkat","download_url":"https://codeload.github.com/zkat/dynvar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fdynvar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260703210,"owners_count":23049434,"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-08T07:41:27.212Z","updated_at":"2025-06-25T07:09:10.654Z","avatar_url":"https://github.com/zkat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dynvar [![Travis](https://img.shields.io/travis/zkat/dynvar.svg)]() [![npm](https://img.shields.io/npm/v/dynvar.svg)]() [![npm](https://img.shields.io/npm/l/dynvar.svg)]()\n\n[`dynvar`](https://github.com/zkat/dynvar) provides dynamically-scoped variables\nwithin a synchronous scope.\n\n# Quickstart\n\n### Install\n\n`$ npm install dynvar`\n\n### Example\n\n```javascript\nvar dynvar = require('dynvar')\ndynvar.define('stdout', process.stdout)\nfunction print (thing) {\n  var stream = dynvar('stdout')\n  if (stream) { stream.write(''+thing) }\n}\n\ndynvar.bind({stdout: null}, function () {\n  print('this will not print anything')\n})\nprint('foo') // foo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkat%2Fdynvar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkat%2Fdynvar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkat%2Fdynvar/lists"}