# dangerfile

> 🚨 Centralised Dangerfile

Latest version **0.2.1** (published 2019-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install dangerfile
pnpm add dangerfile
yarn add dangerfile
bun add dangerfile
```

Provides the command `dangerfile`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2019-05-06 |
| First published | 2019-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 38 |
| Author | omrilotan |
| Maintainers | omrilotan |
| Keywords | danger, dangerfile, ci, pull-request, comment, 🚨 |

## Links

- npm: https://www.npmjs.com/package/dangerfile
- Repository: https://github.com/omrilotan/mono
- Homepage: https://omrilotan.com/mono/dangerfile/
- Issues: https://github.com/omrilotan/mono/issues
- npm.io page: https://npm.io/package/dangerfile

## Dependencies (2)

- [@does/exist](https://npm.io/package/@does/exist.md) ^1.0.0
- [async-execute](https://npm.io/package/async-execute.md) ^1.1.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2019-05-06
- 0.2.0 — 2019-05-06
- 0.1.0 — 2019-05-05

## README

# dangerfile [![](https://img.shields.io/npm/v/dangerfile.svg)](https://www.npmjs.com/package/dangerfile) [![](https://img.shields.io/badge/source--000000.svg?logo=github&style=social)](https://github.com/omrilotan/mono/tree/master/packages/dangerfile)

## 🚨 Centralised [Dangerfile](https://danger.systems/js/)

### CLI
Create a dangerfile and run it. (Installs [danger](https://www.npmjs.com/package/danger) if missing)

```
npx dangerfile
```

### Create your own CLI using this as a module
Add this bin right next to your dangerfile (dangerfile.js)
```js
#!/usr/bin/env node

const dangerfile = require('dangerfile');

(async() => {
	try {
		const message = await dangerfile(__dirname);
		console.info(message);
	} catch (error) {
		console.error(error);
		process.exit(1);
	}
})();
```

The script prioritises local dangerfile above introduced one, unless 'force' flag was passed

```js
await dangerfile(__dirname, {force: true});
```

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