{"id":26665345,"url":"https://github.com/elsehow/hotmop","last_synced_at":"2025-08-17T01:33:04.525Z","repository":{"id":57266843,"uuid":"47797875","full_name":"elsehow/hotmop","owner":"elsehow","description":"hotswap your node modules","archived":false,"fork":false,"pushed_at":"2017-02-04T01:30:44.000Z","size":21,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T08:15:58.614Z","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/elsehow.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-12-11T01:34:23.000Z","updated_at":"2017-02-03T23:22:00.000Z","dependencies_parsed_at":"2022-08-25T03:41:04.236Z","dependency_job_id":null,"html_url":"https://github.com/elsehow/hotmop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elsehow/hotmop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fhotmop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fhotmop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fhotmop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fhotmop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elsehow","download_url":"https://codeload.github.com/elsehow/hotmop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elsehow%2Fhotmop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796220,"owners_count":24647319,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-03-25T17:36:55.298Z","updated_at":"2025-08-17T01:33:04.505Z","avatar_url":"https://github.com/elsehow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hotmop\n\nhot-reload your node modules\n\nemits 'error' on syntax errors\n\n## installation\n\n    npm install hotmop\n\n## usage\n\nin myModule.js\n\n```javascript\nmodule.exports = {\n  stuff: 'nice',\n  moreStuff: 'nice',\n}\n```\n\nin main.js\n\n```javascript\nvar hotmop = require('hotmop')\nvar myCoolModule = require('./myModule.js')\n\nvar f = __dirname + '/myModule.js'\nvar swapper = hotmop(f)\n\nswapper.on('swap', function (newModule) {\n  myCoolModule = newModule\n  console.log('swapped module!', myCoolModule)\n})\n\nswapper.on('error', function (err) {\n  console.log('error in first module!', err)\n})\n\n```\n## api\n\n### hotmop(absolutePath)\n\nreturns an event emitter.\n\n## emitter events\n\n- `swap` - when a watched module has changed\n- `error` - if there was a filesystem error or syntax error\n\n## license\n\nBSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsehow%2Fhotmop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felsehow%2Fhotmop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felsehow%2Fhotmop/lists"}