{"id":13669723,"url":"https://github.com/huruji/v8-load-js-file","last_synced_at":"2025-03-18T06:43:37.420Z","repository":{"id":97310896,"uuid":"413135335","full_name":"huruji/v8-load-js-file","owner":"huruji","description":"v8 嵌入C++ 应用中并实现模块化加载 js 文件的例子(commonjs)","archived":false,"fork":false,"pushed_at":"2021-10-03T17:28:39.000Z","size":18769,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-24T13:25:26.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/huruji.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-10-03T16:37:10.000Z","updated_at":"2022-02-10T07:52:20.000Z","dependencies_parsed_at":"2023-05-07T02:46:33.128Z","dependency_job_id":null,"html_url":"https://github.com/huruji/v8-load-js-file","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/huruji%2Fv8-load-js-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Fv8-load-js-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Fv8-load-js-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huruji%2Fv8-load-js-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huruji","download_url":"https://codeload.github.com/huruji/v8-load-js-file/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173500,"owners_count":20410295,"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-02T09:00:20.687Z","updated_at":"2025-03-18T06:43:37.385Z","avatar_url":"https://github.com/huruji.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# v8-load-js-file\n\nv8 嵌入 C++ 应用中并实现模块化加载 js 文件的例子(commonjs)\n\n\u003e app.js\n\n```js\nconst test = require('test/test.js')\n\nlog(test.a)\nlog(test.add(2,3))\n```\n\n\u003e test.js\n\n```js\nfunction add (a, b) {\n    return a + b;\n}\nmodule.exports = {\n    a: test,\n    add,\n}\n```\n\n运行\n\n```bash\n./demo test/app.js\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Fv8-load-js-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuruji%2Fv8-load-js-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuruji%2Fv8-load-js-file/lists"}