Skip to content

Commit 2cac173

Browse files
committed
fix: readme
1 parent c0e0800 commit 2cac173

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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'
1919
await 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'
2626
const 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'
3333
await 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'
4040
await 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'
4747
await 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'
5454
await destroyTable(baseDir, table).catch((e) => ...)
5555
```
5656

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "json-local-db",
3-
"version": "1.0.0",
2+
"name": "@talaikis/json-db",
3+
"version": "1.0.1",
44
"description": "No dependencies local JSON database.",
55
"main": "index.js",
66
"scripts": {
@@ -39,5 +39,9 @@
3939
"pre-commit": "npm run test",
4040
"pre-push": "npm run test"
4141
}
42-
}
42+
},
43+
"directories": {
44+
"test": "test"
45+
},
46+
"dependencies": {}
4347
}

0 commit comments

Comments
 (0)