{"id":19488667,"url":"https://github.com/ibrado/serverless-eval-plugin","last_synced_at":"2025-10-11T20:43:33.624Z","repository":{"id":57356752,"uuid":"206302758","full_name":"ibrado/serverless-eval-plugin","owner":"ibrado","description":"Evaluates conditional and other expressions within serverless.yml","archived":false,"fork":false,"pushed_at":"2019-12-16T01:49:04.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T20:36:32.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ibrado.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}},"created_at":"2019-09-04T11:24:55.000Z","updated_at":"2021-01-18T11:33:07.000Z","dependencies_parsed_at":"2022-09-26T16:31:59.767Z","dependency_job_id":null,"html_url":"https://github.com/ibrado/serverless-eval-plugin","commit_stats":null,"previous_names":["ibrado/serverless-expressions-plugin"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrado%2Fserverless-eval-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrado%2Fserverless-eval-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrado%2Fserverless-eval-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrado%2Fserverless-eval-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibrado","download_url":"https://codeload.github.com/ibrado/serverless-eval-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240731061,"owners_count":19848470,"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-10T21:04:51.173Z","updated_at":"2025-10-11T20:43:28.572Z","avatar_url":"https://github.com/ibrado.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Eval Plugin\n\nThis Serverless plugin evaluates and replaces expressions within `serverless.yml`.\n\n## Install\n\n```\nnpm install --save-dev serverless-eval-plugin\n```\n\n## Usage\n\nAdd `serverless-eval-plugin` to your `serverless.yml` plugin section:\n\n```yaml\nplugins:\n  - serverless-eval-plugin\n```\n\n### Configuration\n\nThe only configurable option is for verbose output:\n\n```yaml\ncustom:\n  serverless-eval-plugin:\n    verbose: true     # (default: false) Print the resulting values during deploy\n```\n\n`serverless-eval-plugin` supports basic `eval()` support for expressions bounded by `` $`..` `` or `$|..|`.\n\n\u003e NOTE: Nesting `eval()`s using the same expression delimiters is currently not supported. Also, you may need to `eval()` inside a string.\n\n```yaml\ncustom:\n  serverless-eval-plugin:\n    verbose: true\n\n  test: \"$`'5 minutes from now is $|(new Date((new Date()).getTime() + 300000))|'`\"\n\nprovider:\n  profile: \"$`'{self:provider.stage}' === 'prod' ? 'production-minimal' : 'testing-minimal'`\"\n\n  environment:\n    DEPLOY_TIME: $|(new Date()).getTime()|\n\n```\n\nwhich results in:\n\n```\n  Serverless: serverless-eval-plugin set test to \"5 minutes from now is Wed Sep 04 2019 18:29:46 GMT+0800 (PST)\"\n  Serverless: serverless-eval-plugin set profile to \"testing-minimal\"\n  Serverless: serverless-eval-plugin set DEPLOY_TIME to \"1567592686825\"\n```\n\n## See also\n\nGenerate deployed version info for your Lambdas with [serverless-version-info](https://www.npmjs.com/package/serverless-version-info).\n\n## Contribute\n\nPlease see the [Github repository](https://github.com/ibrado/serverless-eval-plugin.git).\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrado%2Fserverless-eval-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibrado%2Fserverless-eval-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrado%2Fserverless-eval-plugin/lists"}