# 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))


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wastefuldb.gitbook.io/wastefuldb/asyncwastefuldb/constructor-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
