{"id":14385040,"url":"https://github.com/davidfoliveira/node-httprequire","last_synced_at":"2026-01-10T23:44:41.055Z","repository":{"id":8918116,"uuid":"10645250","full_name":"davidfoliveira/node-httprequire","owner":"davidfoliveira","description":"A way to include remote node.js modules","archived":false,"fork":false,"pushed_at":"2016-03-22T16:13:06.000Z","size":8104,"stargazers_count":10,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-15T04:35:39.879Z","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/davidfoliveira.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":"2013-06-12T14:59:14.000Z","updated_at":"2021-04-27T10:15:18.000Z","dependencies_parsed_at":"2022-08-27T22:31:20.365Z","dependency_job_id":null,"html_url":"https://github.com/davidfoliveira/node-httprequire","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/davidfoliveira%2Fnode-httprequire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfoliveira%2Fnode-httprequire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfoliveira%2Fnode-httprequire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfoliveira%2Fnode-httprequire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfoliveira","download_url":"https://codeload.github.com/davidfoliveira/node-httprequire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230720978,"owners_count":18270485,"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-08-28T18:01:53.090Z","updated_at":"2024-12-21T13:30:32.001Z","avatar_url":"https://github.com/davidfoliveira.png","language":"JavaScript","readme":"# httprequire: A way to include remote node.js modules\n\n`httprequire` is a module that allows you to require other node.js modules that are accessible through http. For syncronous HTTP GET's, it depends of `httpsync`, so unfortunately https is not supported by default.\n\n\n# Installing\n\n\tnpm install httprequire\n\n\n# Using\n\nJust write this line on the top of your code:\n\n\trequire('httprequire');\n\nAfter that you can require remote modules using `httprequire()`:\n\n\tvar\n\t    async = httprequire('http://pz.org.pt/~david/projects/node/tmp/async.js');\n\nIf you preffer an asyncronous way of requiring a module:\n\n\thttprequire('http://pz.org.pt/~david/projects/node/tmp/async.js',function(async){\n\t\t// stuff\n\t});\n\n\n# Cache\n\nBy default `httprequire()` will cache the results of `http.get()` and will use them if the same URL is required on the future. To bypass the cache, pass a `true` after the URL.\n\nExample:\n\n\tasync = httprequire('http://pz.org.pt/~david/projects/node/tmp/async.js',true);\n\n\n# Dependences\n\nThis module depends of `httpsync` for performing syncronous http requests and completelly relies on node.js `global` variable and `module` structure. If on the future node.js changes the structure of these 2 variables, can eventually break `httprequire`.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfoliveira%2Fnode-httprequire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfoliveira%2Fnode-httprequire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfoliveira%2Fnode-httprequire/lists"}