# simpledb-database

> ```js

Latest version **1.0.2** (published 2022-12-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install simpledb-database
pnpm add simpledb-database
yarn add simpledb-database
bun add simpledb-database
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-12-13 |
| First published | 2022-12-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | ballex |

## Links

- npm: https://www.npmjs.com/package/simpledb-database
- npm.io page: https://npm.io/package/simpledb-database

## Dependencies (1)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security

## Recent versions

- 1.0.2 (latest) — 2022-12-13
- 1.0.1 — 2022-12-13
- 1.0.0 — 2022-12-13

## README

```js

simpleDB.read('databaseFile.db') //Read contents of database

simpleDB.write('databaseFile.db', "databaseName", [JSON.stringify({example:"example",example2:"example2"})]) //Write to database

simpleDB.createDB('databaseFile') //Create a database file

simpleDB.deleteRows('databaseFile.db', "RowName") //Delete a row in database where name is RowName

simpleDB.deleteTable('databaseFile.db', "tableName") //Delete a table in database where name is tableName

simpleDB.readRowWhere('databaseFile.db', 'Name') //Read a row in database where name is rowName

simpleDB.readTableWhere('databaseFile.db', "tableName") //Read a table in database where name is tableName

simpleDB.updateTable('databaseFile.db', 'tableName', "newTableName", [JSON.stringify({Name:"content",Age:"int"})]) //Update a table in database where name is tableName and new name is newTableName

simpleDB.updateRowWhere('database.db', "RowName", "RowItem", "NewRowItem") //Update a row-item in row where rowname is RowName and where row-item is RowItem and new row-item is NewRowItem

```

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