# is-serverless

> check if your code running inside a serverless function or not

Latest version **1.0.0** (published 2019-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-serverless
pnpm add is-serverless
yarn add is-serverless
bun add is-serverless
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-08-29 |
| First published | 2019-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Eslam Salem |
| Maintainers | netcode |

## Links

- npm: https://www.npmjs.com/package/is-serverless
- Repository: https://github.com/shieldfy/is-serverless
- Homepage: https://github.com/shieldfy/is-serverless#readme
- Issues: https://github.com/shieldfy/is-serverless/issues
- npm.io page: https://npm.io/package/is-serverless

## Dependencies (1)

- [is-lambda](https://npm.io/package/is-lambda.md) ^1.0.1

## Recent versions

- 1.0.0 (latest) — 2019-08-29

## README

# is-serverless

Detection 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))

## Inspiration

This package inspired by `is-lambda` package by [@watson](https://github.com/watson)

## Installation

```
npm install is-serverless
```

## Usage

```js
var isServerless = require('is-serverless')

if (isServerless.result) {
  console.log('The code is running on a serverless environment : ' + isServerless.whichOne)
}
```

## Contribution

Feel 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.


## License

MIT

---
_Source: https://npm.io/package/is-serverless · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
