# is-lambda

> Detect if your code is running on an AWS Lambda server

Latest version **1.0.1** (published 2017-05-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-05-24 |
| First published | 2016-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-lambda) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Thomas Watson Steen |
| Maintainers | watson |
| Keywords | aws, hosting, hosted, lambda, detect |

## Links

- npm: https://www.npmjs.com/package/is-lambda
- Repository: https://github.com/watson/is-lambda
- Issues: https://github.com/watson/is-lambda/issues
- npm.io page: https://npm.io/package/is-lambda

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-05-24
- 1.0.0 — 2016-02-12

## README

# is-lambda

Returns `true` if the current environment is an [AWS
Lambda](https://aws.amazon.com/lambda/) server.

[![Build status](https://travis-ci.org/watson/is-lambda.svg?branch=master)](https://travis-ci.org/watson/is-lambda)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Installation

```
npm install is-lambda
```

## Usage

```js
var isLambda = require('is-lambda')

if (isLambda) {
  console.log('The code is running on a AWS Lambda')
}
```

## License

MIT

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