{"id":25656414,"url":"https://github.com/dogma-io/vmdom","last_synced_at":"2025-04-19T12:39:09.355Z","repository":{"id":57393546,"uuid":"114651967","full_name":"dogma-io/vmdom","owner":"dogma-io","description":"Lightweight browser implementation for Node's VM.","archived":false,"fork":false,"pushed_at":"2018-09-03T02:20:15.000Z","size":192,"stargazers_count":5,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-30T02:21:31.607Z","etag":null,"topics":["api","browser","document","node","node-vm","nodejs","server-side-rendering","virtual-machine","vm","window"],"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/dogma-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-12-18T14:42:40.000Z","updated_at":"2022-08-22T23:05:05.000Z","dependencies_parsed_at":"2022-09-26T16:51:08.140Z","dependency_job_id":null,"html_url":"https://github.com/dogma-io/vmdom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogma-io%2Fvmdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogma-io%2Fvmdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogma-io%2Fvmdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogma-io%2Fvmdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dogma-io","download_url":"https://codeload.github.com/dogma-io/vmdom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240390498,"owners_count":19793780,"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":["api","browser","document","node","node-vm","nodejs","server-side-rendering","virtual-machine","vm","window"],"created_at":"2025-02-23T22:32:56.372Z","updated_at":"2025-02-23T22:33:51.558Z","avatar_url":"https://github.com/dogma-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vmdom [![NPM][npm-img]][npm-url] [![Coverage][cov-img]][cov-url]\n\nLightweight browser implementation for Node's VM.\n\n## Installation\n\n**npm**\n\n```bash\nnpm install vmdom\n```\n\n**yarn**\n\n```bash\nyarn add vmdom\n```\n\n\n## Usage\n\n```js\nimport {Browser} from 'vmdom'\n\nconst browser = new Browser()\nconst {eval, window} = browser\n\n// Execute arbitrary JavaScript using eval\neval(\"window.foo = 'bar'\")\n\nconsole.log(window.foo) // logs \"bar\" to console\n\n// When you are done make sure all timers, event handlers, etc are cleaned up\nBrowser.destroy(browser)\n```\n\n[cov-img]: https://img.shields.io/codecov/c/github/dogma-io/vmdom.svg \"Code Coverage\"\n[cov-url]: https://codecov.io/gh/dogma-io/vmdom\n\n[npm-img]: https://img.shields.io/npm/v/vmdom.svg \"NPM Version\"\n[npm-url]: https://www.npmjs.com/package/vmdom\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogma-io%2Fvmdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdogma-io%2Fvmdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogma-io%2Fvmdom/lists"}