# @dazn/chaos-squirrel-attack-disk-space

> Chaos Squirrel attack to consume/fill disk space

Latest version **0.10.1** (published 2021-07-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @dazn/chaos-squirrel-attack-disk-space
pnpm add @dazn/chaos-squirrel-attack-disk-space
yarn add @dazn/chaos-squirrel-attack-disk-space
bun add @dazn/chaos-squirrel-attack-disk-space
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.10.1 |
| Published | 2021-07-20 |
| First published | 2020-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Simon Tabor |
| Maintainers | rick-burgess-dazn, cirpo, dazn.builder.frontend, automation-drone, m.bazalik, dazn.oss.lambda.powertools, dazn.oss |

## Links

- npm: https://www.npmjs.com/package/@dazn/chaos-squirrel-attack-disk-space
- Repository: https://github.com/getndazn/chaos-squirrel
- Homepage: https://github.com/getndazn/chaos-squirrel/packages/attack-disk-space#readme
- Issues: https://github.com/getndazn/chaos-squirrel/issues
- npm.io page: https://npm.io/package/@dazn/chaos-squirrel-attack-disk-space

## Recent versions

- 0.10.1 (latest) — 2021-07-20
- 0.10.0 — 2021-03-12
- 0.9.9 — 2021-02-15
- 0.9.8 — 2021-01-22
- 0.9.7 — 2021-01-22
- 0.9.5 — 2020-12-15
- 0.9.4 — 2020-10-29
- 0.9.3 — 2020-10-29
- 0.9.2 — 2020-10-26
- 0.9.1 — 2020-10-05
- 0.9.0 — 2020-08-25
- 0.8.0 — 2020-08-24
- 0.7.0 — 2020-08-24
- 0.6.0 — 2020-08-14
- 0.5.0 — 2020-08-14
- … 1 more at https://npm.io/package/@dazn/chaos-squirrel-attack-disk-space/versions

## README

# @dazn/chaos-squirrel-attack-disk-space

Consume lots of disk space. Spawns a `dd` process, so this is unlikely to work on non-unix systems.

Note that AWS Lambda functions have [512 MB disk space available](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).

## Usage

```ts
import DiskSpaceAttack from '@dazn/chaos-squirrel-attack-disk-space';
const createDiskSpaceAttack = DiskSpaceAttack.configure({
  // 2gb
  size: 2000000000,
});
const diskSpaceAttack = createDiskSpaceAttack();

// Start and stop methods are async for this attack.
// You should await the results to ensure the file is fully created + removed
await diskSpaceAttack.start();
// a 2gb file will be created
await diskSpaceAttack.stop(); // deletes the file
```

---
_Source: https://npm.io/package/@dazn/chaos-squirrel-attack-disk-space · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
