# @vaadin/vaadin-development-mode-detector

> Element for detecting that an application using Vaadin Elements is running in development mode

Latest version **2.0.7** (published 2024-05-07) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @vaadin/vaadin-development-mode-detector
pnpm add @vaadin/vaadin-development-mode-detector
yarn add @vaadin/vaadin-development-mode-detector
bun add @vaadin/vaadin-development-mode-detector
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.7 |
| Published | 2024-05-07 |
| First published | 2018-03-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vaadin Ltd |
| Maintainers | web-padawan, diegocardoso, alvarezguille, platosha, jouni, manolo, yuriyyev, vaadin-owner, tomivirkki, artur-, sunzhewyq, sosa-vaadin |

## Links

- npm: https://www.npmjs.com/package/@vaadin/vaadin-development-mode-detector
- Repository: https://github.com/vaadin/vaadin-development-mode-detector
- Homepage: https://github.com/vaadin/vaadin-development-mode-detector#readme
- Issues: https://github.com/vaadin/vaadin-development-mode-detector/issues
- npm.io page: https://npm.io/package/@vaadin/vaadin-development-mode-detector

## Recent versions

- 2.0.7 (latest) — 2024-05-07
- 2.0.6 — 2023-03-20
- 2.0.5 — 2022-01-25
- 2.0.4 — 2019-06-27
- 2.0.2 — 2019-06-07
- 2.0.1 — 2019-06-05
- 1.1.0 — 2018-10-24
- 2.0.0 — 2018-08-09
- 2.0.0-beta1 — 2018-08-08
- 1.1.0-beta1 — 2018-07-26
- 2.0.0-alpha3 — 2018-07-20
- 2.0.0-alpha2 — 2018-07-19
- 2.0.0-alpha1 — 2018-07-18
- 1.1.0-alpha2 — 2018-06-20
- 1.1.0-alpha1 — 2018-06-20
- … 6 more at https://npm.io/package/@vaadin/vaadin-development-mode-detector/versions

## README

Utility method for detecting that an application using Vaadin Elements is running in development mode

## Running Tests

There are no automatic tests as the functionality depends on the host the code is run on (localhost vs others) and the bundling status.

To verify functionality:
1. Run `npm install`
1. Run `bower install`
1. Run `npm start`
1. Open http://localhost:8081/test/index.html
  1. Verify that `mode` is `development` (green)
  1. Verify that `importIfDevelopmentMode` is `run` (green)
1. Open http://`<yourip>`:8081/test/index.html
  1. Verify that `mode` is `production` (orange)
  1. Verify that `importIfDevelopmentMode` is `ignored` (orange)
1. Run `npm run start:prod`
1. Open http://localhost:8081/test/index.html
  1. Verify that `mode` is `production` (orange)
  1. Verify that `importIfDevelopmentMode` is `ignored` (orange)
1. Open http://`<yourip>`:8081/test/index.html
    1. Verify that `mode` is `production` (orange)
    1. Verify that `importIfDevelopmentMode` is `ignored` (orange)

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