# @types/is-pr

> TypeScript definitions for is-pr

Latest version **2.0.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/is-pr
pnpm add @types/is-pr
yarn add @types/is-pr
bun add @types/is-pr
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2023-11-07 |
| First published | 2022-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/is-pr
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-pr
- npm.io page: https://npm.io/package/@types/is-pr

## Recent versions

- 2.0.2 (latest) — 2023-11-07
- 2.0.0 (ts4.1) — 2022-11-02
- 2.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/is-pr`

# Summary
This package contains type definitions for is-pr (https://github.com/watson/is-pr).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-pr.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-pr/index.d.ts)
````ts
export = isPR;

/**
 * Detects if the current environment is a Continuous Integration
 * server configured to run a PR build.
 *
 * @returns `true` if running in CI with a PR build, otherwise `false`.
 * If PR detection is not supported for the current CI server, the value will be `null`.
 *
 * @example
 * import isPR = require('is-pr')
 *
 * if (isPR) {
 *   console.log('The code is running on a CI server as part of a PR build')
 * }
 */
declare const isPR: boolean | null;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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