{"id":18633674,"url":"https://github.com/cloudcomponents/lambda-utils-nodejs","last_synced_at":"2025-04-11T07:32:26.121Z","repository":{"id":57102609,"uuid":"347923289","full_name":"cloudcomponents/lambda-utils-nodejs","owner":"cloudcomponents","description":"Lambda utils for cloudcomponents cdk constructs","archived":false,"fork":false,"pushed_at":"2024-05-11T19:46:43.000Z","size":167,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-23T09:18:36.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/cloudcomponents.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":"2021-03-15T10:19:57.000Z","updated_at":"2024-05-20T11:11:27.000Z","dependencies_parsed_at":"2024-06-21T12:56:09.570Z","dependency_job_id":"9c454282-e5da-40f3-88b9-c349a0ecaa2f","html_url":"https://github.com/cloudcomponents/lambda-utils-nodejs","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/cloudcomponents%2Flambda-utils-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcomponents%2Flambda-utils-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcomponents%2Flambda-utils-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcomponents%2Flambda-utils-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudcomponents","download_url":"https://codeload.github.com/cloudcomponents/lambda-utils-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223390835,"owners_count":17137875,"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-11-07T05:15:52.138Z","updated_at":"2024-11-07T05:15:52.207Z","avatar_url":"https://github.com/cloudcomponents.png","language":"TypeScript","readme":"[![cloudcomponents Logo](https://raw.githubusercontent.com/cloudcomponents/cdk-constructs/master/logo.png)](https://github.com/cloudcomponents/cdk-constructs)\n\n# @cloudcomponents/lambda-utils\n\n[![Build Status](https://github.com/cloudcomponents/lambda-utils-nodejs/actions/workflows/ci.yaml/badge.svg)](https://github.com/cloudcomponents/lambda-utils-nodejs/actions/workflows/ci.yaml)\n\n\u003e Lambda utils for cloudcomponents cdk constructs\n\n## Install\n\n```bash\nnpm i @cloudcomponents/lambda-utils\n```\n\n## How to use\n\n### SecretKey\n```typescript\nimport { SecretKey } from \"@cloudcomponents/lambda-utils\";\n\nconst secretKey = new SecretKey(process.env.SECRET_KEY_STRING as string);\n\nexport const handler = async (event, context) =\u003e {\n  const value = await secretKey.getValue();\n  return `Hello ${value}`\n}\n\n```\n\nSee [cdk-secret-key](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-secret-key) for the cdk counterpart\n\n### SecretKeyStore\n```typescript\nimport { SecretKeyStore } from \"@cloudcomponents/lambda-utils\";\n\nconst secretKeyStore = new SecretKeyStore(process.env.SECRET_KEY_STORE_STRING as string);\n\nexport const handler = async (event, context) =\u003e {\n  const value = \"secret\"\n  await secretKey.putValue(value);\n  return `Hello`\n}\n\n```\nSee [cdk-secret-key](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-secret-key) for the cdk counterpart\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcomponents%2Flambda-utils-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudcomponents%2Flambda-utils-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcomponents%2Flambda-utils-nodejs/lists"}