{"id":15640964,"url":"https://github.com/tiagodanin/require-from-web","last_synced_at":"2025-04-12T22:35:52.528Z","repository":{"id":33110611,"uuid":"152106510","full_name":"TiagoDanin/Require-From-Web","owner":"TiagoDanin","description":"Import/Load/Require module from url","archived":false,"fork":false,"pushed_at":"2025-03-03T21:21:49.000Z","size":289,"stargazers_count":7,"open_issues_count":18,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T15:38:55.576Z","etag":null,"topics":["import","node-module","require"],"latest_commit_sha":null,"homepage":"https://tiagodanin.github.io/Require-From-Web/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TiagoDanin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-08T15:50:18.000Z","updated_at":"2023-09-28T01:08:43.000Z","dependencies_parsed_at":"2023-10-14T22:53:29.518Z","dependency_job_id":"5b8d678e-217c-4ad5-91c5-de157be77906","html_url":"https://github.com/TiagoDanin/Require-From-Web","commit_stats":{"total_commits":38,"total_committers":4,"mean_commits":9.5,"dds":0.5526315789473684,"last_synced_commit":"c3b82f63bd8bc678dda305e959602f3742a6506d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FRequire-From-Web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FRequire-From-Web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FRequire-From-Web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TiagoDanin%2FRequire-From-Web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TiagoDanin","download_url":"https://codeload.github.com/TiagoDanin/Require-From-Web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248642574,"owners_count":21138351,"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":["import","node-module","require"],"created_at":"2024-10-03T11:40:47.293Z","updated_at":"2025-04-12T22:35:52.501Z","avatar_url":"https://github.com/TiagoDanin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Require From Web\n\n[![Travis](https://img.shields.io/travis/TiagoDanin/Require-From-Web.svg?branch=master\u0026style=flat-square)](https://travis-ci.org/TiagoDanin/Require-From-Web) [![Downloads](https://img.shields.io/npm/dt/require-from-web.svg?style=flat-square)](https://npmjs.org/package/require-from-web) [![Node](https://img.shields.io/node/v/require-from-web.svg?style=flat-square)](https://npmjs.org/package/require-from-web) [![Version](https://img.shields.io/npm/v/require-from-web.svg?style=flat-square)](https://npmjs.org/package/require-from-web) [![XO code style](https://img.shields.io/badge/code%20style-XO-red.svg?style=flat-square)](https://github.com/xojs/xo) \n\nImport/Load/Require module from url\n\n## Installation\n\nModule available through the [npm registry](https://www.npmjs.com/). It can be installed using the  [`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally) or [`yarn`](https://yarnpkg.com/en/) command line tools.\n\n```sh\n# NPM\nnpm install require-from-web --save\n# Or Using Yarn\nyarn add require-from-web\n```\n\n## Example\n\n```js\nconst requireFromWeb = require('require-from-web')\n\nconst url = 'https://unpkg.com/jformat@1.0.4/index.js'\n\nrequireFromWeb(url).then(format =\u003e {\n\tconst text = format('Forever {Python}', {Python: 'JavaScript'})\n\tconsole.log(text) // Forever JavaScript\n})\n```\n\n## Documentation\n\n### Options :: requireFromWeb(url, axiosOptions, code)\n\n#### url\nUrl of file.\n\nType: `String`\n\n#### axiosOptions**\nConfig/option of Axios.\n\nType: `Object`\n\n#### code\nAdd more code in end script.\n\nType: `String`\n\n## Tests\n\nTo run the test suite, first install the dependencies, then run `test`:\n\n```sh\n# NPM\nnpm test\n# Or Using Yarn\nyarn test\n```\n\n## Dependencies\n\n- [axios](https://ghub.io/axios): Promise based HTTP client for the browser and node.js\n\n## Dev Dependencies\n\n- [xo](https://ghub.io/xo): JavaScript happiness style linter ❤️\n\n## Contributors\n\nPull requests and stars are always welcome. For bugs and feature requests, please [create an issue](https://github.com/TiagoDanin/Require-From-Web/issues). [List of all contributors](https://github.com/TiagoDanin/Require-From-Web/graphs/contributors).\n\n## License\n\n[MIT](LICENSE) © [Tiago Danin](https://TiagoDanin.github.io)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagodanin%2Frequire-from-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiagodanin%2Frequire-from-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagodanin%2Frequire-from-web/lists"}