---
description: This is the setup page for the Asynchronous WastefulDB module. Not everything
---

# Constructor Setup

## Quick Setup

```javascript
const AsyncWastefulDB = require("wastefuldb/async");
const db = new AsyncWastefulDB();
```

***

## Setup Options

```javascript
// These are the default arguments when left empty.
new AsyncWastefulDB({
    path: "./syncData/"
    feedback: true,
    parse: true,
    kill: false
})
```

### • path

Specifying a path will override the default directory each function uses to create, find, and update documents. This **won't** override the directories specified using the _{dir}_ parameter in each function.

### • feedback

A confirmation message will be sent to **stdout** (aka console.log) after each function is executed successfully. Most messages will include the target document's identifier.

### • parse

Dictates whether or not the JSON contained in a document should be parsed when **returned** after a function is executed. Data is always stringified when written to documents.

### • kill

([Refer to the normal docs](https://wastefuldb.gitbook.io/wastefuldb#kill))
