# datajs-fifiinart

> A small database for node.js.

Latest version **1.0.0** (published 2019-05-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install datajs-fifiinart
pnpm add datajs-fifiinart
yarn add datajs-fifiinart
bun add datajs-fifiinart
```

## 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.0 |
| Published | 2019-05-31 |
| First published | 2019-05-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fifi Art |
| Maintainers | fifiinart |
| Keywords | database, nodejs |

## Links

- npm: https://www.npmjs.com/package/datajs-fifiinart
- Repository: https://github.com/fifiinart/DataJS
- Homepage: https://github.com/fifiinart/DataJS#readme
- Issues: https://github.com/fifiinart/DataJS/issues
- npm.io page: https://npm.io/package/datajs-fifiinart

## Recent versions

- 1.0.0 (latest) — 2019-05-31

## README

# DataJS

This is a simple database for Node.js.

## Functions
### `createDatabase`
_Creates a database._
Parameters:
- `name`: The name of the database.
### `deleteDatabase`
_Deletes a database._
Parameters:
- `name`: The name of the database.
### `createTable`
_Creates a table for a database._
Parameters:
- `name`: The name of the table.
- `db`: The database to connect the table to.
- `columns`: The columns to use for the table.
Returns the table created.
### `deleteTable`
_Deletes a table for a database._
Parameters:
- `name`: The name of the table deleted.
- `db`: The database the table is connected to.
## `Table` Class Methods
### `Table#insertRow`
_Inserts a row into a table._
Parameters:
- `values`: The values to insert. (Rest/spread parameter)
Returns the table for chaining.
### `Table#insertRows`
_Inserts multiple rows into a table._
Parameters:
- `values`: The arrays of values to insert. (Rest/spread parameter)
Returns the table for chaining.
### `Table#deleteRow`
_Deletes a row from the table._
Parameters:
- `index`: The index of the row to delete.
Returns the table for chaining.
### `Table#deleteRows`
_Deletes multiple rows from the table._
Parameters:
- `startIndex`: The first index to delete.
- `endIndex`: The last index to delete (inclusive).
Returns the table for chaining.
### `Table#push`
_Pushes the local data into the database and clears the local data._
### `Table#pull`
_Pulls data from the database into the local data._
### `get Table#localContent`
_Gets the local data._

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