[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3417":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":9,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},3417,"requirejs","requirejs\u002Frequirejs","A file and module loader for JavaScript","https:\u002F\u002Frequirejs.org\u002F",null,"JavaScript",12917,2337,502,258,0,1,4,45,"Other",false,"master",true,[],"2026-06-12 02:00:50","# RequireJS\n\nRequireJS loads plain JavaScript files as well as more defined modules. It is\noptimized for in-browser use, including in\n[a Web Worker](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fapi.html#webworker), but it can be used\nin other JavaScript environments, like Rhino and\n[Node](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fnode.html). It implements the\n[Asynchronous Module](https:\u002F\u002Fgithub.com\u002Famdjs\u002Famdjs-api\u002Fwiki\u002FAMD)\nAPI.\n\nRequireJS uses plain script tags to load modules\u002Ffiles, so it should allow for\neasy debugging. It can be used\n[simply to load existing JavaScript files](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fapi.html#jsfiles),\nso you can add it to your existing project without having to re-write your\nJavaScript files.\n\nRequireJS includes [an optimization tool](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Foptimization.html)\nyou can run as part of your packaging steps for deploying your code. The\noptimization tool can combine and minify your JavaScript files to allow for\nbetter performance.\n\nIf the JavaScript file defines a JavaScript module via\n[define()](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fapi.html#define), then there are other benefits\nRequireJS can offer: [improvements over traditional CommonJS modules](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fcommonjs.html)\nand [loading multiple versions](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fapi.html#multiversion)\nof a module in a page. RequireJS also has a plugin system that supports features like\n[i18n string bundles](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fapi.html#i18n), and\n[text file dependencies](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fapi.html#text).\n\nRequireJS does not have any dependencies on a JavaScript framework.\n\nRequireJS works in IE 6+, Firefox 2+, Safari 3.2+, Chrome 3+, and Opera 10+.\n\n[Latest Release](https:\u002F\u002Frequirejs.org\u002Fdocs\u002Fdownload.html)\n\n## License\n\nMIT\n\n## Code of Conduct\n\n[jQuery Foundation Code of Conduct](https:\u002F\u002Fjquery.org\u002Fconduct\u002F).\n\n## Directories\n\n* **dist**: Scripts and assets to generate the requirejs.org docs, and for\ngenerating a require.js release.\n* **docs**: The raw HTML files for the requirejs.org docs. Only includes the\nbody of each page. Files in **dist** are used to generate a complete HTML page.\n* **tests**: Tests for require.js.\n* **testBaseUrl.js**: A file used in the tests inside **tests**. Purposely\nplaced outside the tests directory for testing paths that go outside a baseUrl.\n* **updatesubs.sh**: Updates projects that depend on require.js Assumes the\nprojects are siblings to this directory and have specific names. Useful to\ncopy require.js to dependent projects easily while in development.\n\n## Tests\n\nThis repo assumes some other repos are checked out as siblings to this repo:\n\n    git clone https:\u002F\u002Fgithub.com\u002Frequirejs\u002Ftext.git\n    git clone https:\u002F\u002Fgithub.com\u002Frequirejs\u002Fi18n.git\n    git clone https:\u002F\u002Fgithub.com\u002Frequirejs\u002FdomReady.git\n    git clone https:\u002F\u002Fgithub.com\u002Frequirejs\u002Frequirejs.git\n\nSo when the above clones are done, the directory structure should look like:\n\n* domReady\n* i18n\n* text\n* requirejs (this repo)\n\nYou will need to be connected to the internet because the JSONP and\nremoteUrls tests access the internet to complete their tests.\n\nServe the directory with these 4 siblings from a web server. It can be a local web server.\n\nOpen requirejs\u002Ftests\u002Findex.html in all the browsers, click the arrow button to run all\nthe tests.\n","RequireJS 是一个用于JavaScript文件和模块加载的工具。它支持异步模块定义（AMD）API，能够在浏览器中高效加载JavaScript文件及模块，同时也适用于Web Worker、Rhino和Node.js等环境。其核心功能包括通过普通脚本标签加载模块，便于调试；提供优化工具以合并并压缩JavaScript文件，提高性能；支持定义模块并通过define()方法获取额外优势，如改进传统CommonJS模块、在同一页面加载同一模块的不同版本等。此外，RequireJS还拥有插件系统，支持国际化字符串包和文本文件依赖等功能。该工具非常适合需要在前端项目中实现模块化管理以及优化资源加载效率的场景使用。",2,"2026-06-11 02:54:10","top_language"]