{"id":22413374,"url":"https://github.com/rokid/egg-view-lambda","last_synced_at":"2026-06-25T02:31:17.103Z","repository":{"id":57220839,"uuid":"132990384","full_name":"rokid/egg-view-lambda","owner":"rokid","description":"Render a response with lambda function","archived":false,"fork":false,"pushed_at":"2018-05-11T07:10:49.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-14T09:17:43.515Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rokid.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}},"created_at":"2018-05-11T04:44:43.000Z","updated_at":"2018-05-11T07:10:50.000Z","dependencies_parsed_at":"2022-08-29T04:01:46.528Z","dependency_job_id":null,"html_url":"https://github.com/rokid/egg-view-lambda","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rokid/egg-view-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-view-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-view-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-view-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-view-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rokid","download_url":"https://codeload.github.com/rokid/egg-view-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rokid%2Fegg-view-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34757353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"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":"2024-12-05T14:12:41.864Z","updated_at":"2026-06-25T02:31:17.083Z","avatar_url":"https://github.com/rokid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-view-lambda\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-view-lambda.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-view-lambda\n[travis-image]: https://img.shields.io/travis/Rokid/egg-view-lambda.svg?style=flat-square\n[travis-url]: https://travis-ci.org/Rokid/egg-view-lambda\n[codecov-image]: https://img.shields.io/codecov/c/github/Rokid/egg-view-lambda.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/Rokid/egg-view-lambda?branch=master\n[david-image]: https://img.shields.io/david/Rokid/egg-view-lambda.svg?style=flat-square\n[david-url]: https://david-dm.org/Rokid/egg-view-lambda\n[snyk-image]: https://snyk.io/test/npm/egg-view-lambda/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-view-lambda\n[download-image]: https://img.shields.io/npm/dm/egg-view-lambda.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-view-lambda\n\n## Install\n\n```bash\n$ npm i egg-view-lambda --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.lambda = {\n  enable: true,\n  package: 'egg-view-lambda'\n}\n\n// {app_root}/config/config.default.js\nexports.view = {\n  mapping: {\n    '.js': 'lambda'\n  }\n}\n```\n\nCreate a view file\n```js\n// app/view/hello.js\nmodule.exports = locals =\u003e ({\n  hello: locals.name\n})\n```\n\nRender it\n```js\n// app/controller/render.js\nexports.render = async ctx =\u003e {\n  await ctx.render('hello.js', {\n    name: 'world'\n  })\n}\n```\n\n## Configuration\n\nsee [config/config.default.js](config/config.default.js) for more detail.\n\n## Example\n\n\u003c!-- example here --\u003e\n\n## Questions \u0026 Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokid%2Fegg-view-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frokid%2Fegg-view-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokid%2Fegg-view-lambda/lists"}