{"id":22136600,"url":"https://github.com/shieldfy/is-serverless","last_synced_at":"2025-07-25T20:33:04.536Z","repository":{"id":57277584,"uuid":"205118754","full_name":"shieldfy/is-serverless","owner":"shieldfy","description":"check if your code running inside a serverless function or not","archived":false,"fork":false,"pushed_at":"2022-11-30T09:35:09.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-01T02:35:59.690Z","etag":null,"topics":["aws","aws-lambda","cloud-functions","gcp","gcp-cloud-functions","serverless"],"latest_commit_sha":null,"homepage":null,"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/shieldfy.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":"2019-08-29T08:38:25.000Z","updated_at":"2023-01-31T17:31:56.000Z","dependencies_parsed_at":"2023-01-22T18:00:40.839Z","dependency_job_id":null,"html_url":"https://github.com/shieldfy/is-serverless","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/shieldfy%2Fis-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fis-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fis-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shieldfy%2Fis-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shieldfy","download_url":"https://codeload.github.com/shieldfy/is-serverless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227581805,"owners_count":17789311,"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":["aws","aws-lambda","cloud-functions","gcp","gcp-cloud-functions","serverless"],"created_at":"2024-12-01T19:23:50.437Z","updated_at":"2024-12-01T19:23:51.164Z","avatar_url":"https://github.com/shieldfy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-serverless\n\nDetection library for serverless environment, currently supports ([AWS Lambda](https://aws.amazon.com/lambda/), [GCP cloud functions](https://cloud.google.com/functions/), [Azure functions](https://azure.microsoft.com/en-in/services/functions/), [Cloudflare workers](https://workers.cloudflare.com))\n\n## Inspiration\n\nThis package inspired by `is-lambda` package by [@watson](https://github.com/watson)\n\n## Installation\n\n```\nnpm install is-serverless\n```\n\n## Usage\n\n```js\nvar isServerless = require('is-serverless')\n\nif (isServerless.result) {\n  console.log('The code is running on a serverless environment : ' + isServerless.whichOne)\n}\n```\n\n## Contribution\n\nFeel free to fork, commit and submit pull request if you find a bug, or you want to add support to a new environment. Contributions are very welcome.\n\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshieldfy%2Fis-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshieldfy%2Fis-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshieldfy%2Fis-serverless/lists"}