@@ -5,7 +5,7 @@ This is simple, no dependencies, local disk, table-level Node.js JSON database,
55## Install
66
77``` bash
8- npm i json-local -db
8+ npm i @talaikis/ json-db
99```
1010
1111## Fucntions
@@ -15,42 +15,42 @@ All functions need `baseDir`, where the database is stored. For example: `join(_
1515### Create item in a table
1616
1717``` js
18- import { create } from ' json-local -db'
18+ import { create } from ' @talaikis/ json-db'
1919await create (baseDir, table, itemName, jsonData).catch ((e ) => ... )
2020```
2121
2222### Read item from the table
2323
2424``` js
25- import { read } from ' json-local -db'
25+ import { read } from ' @talaikis/ json-db'
2626const jsonData = await read (baseDir, table, itemName).catch ((e ) => ... )
2727```
2828
2929### Update the item in a table
3030
3131``` js
32- import { update } from ' json-local -db'
32+ import { update } from ' @talaikis/ json-db'
3333await update (baseDir, table, itemName, newJsonData).catch ((e ) => ... )
3434```
3535
3636### Delete item from the table
3737
3838``` js
39- import { destroy } from ' json-local -db'
39+ import { destroy } from ' @talaikis/ json-db'
4040await destroy (baseDir, table, itemName).catch ((e ) => ... )
4141```
4242
4343### List table items
4444
4545``` js
46- import { list } from ' json-local -db'
46+ import { list } from ' @talaikis/ json-db'
4747await list (baseDir, table).catch ((e ) => ... )
4848```
4949
5050### Delete table
5151
5252``` js
53- import { destroyTable } from ' json-local -db'
53+ import { destroyTable } from ' @talaikis/ json-db'
5454await destroyTable (baseDir, table).catch ((e ) => ... )
5555```
5656
0 commit comments