@talaikis/json-db
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@talaikis/json-db", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "No dependencies local JSON database.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,3 @@ # Local JSON Database | ||
```bash | ||
npm i json-db | ||
npm i -S @talaikis/json-db | ||
``` | ||
@@ -19,3 +19,3 @@ | ||
```js | ||
import { create } from 'json-db' | ||
import { create } from '@talaikis/json-db' | ||
await create(baseDir, table, itemName, jsonData).catch((e) => ...) | ||
@@ -27,3 +27,3 @@ ``` | ||
```js | ||
import { read } from 'json-db' | ||
import { read } from '@talaikis/json-db' | ||
const jsonData = await read(baseDir, table, itemName).catch((e) => ...) | ||
@@ -35,3 +35,3 @@ ``` | ||
```js | ||
import { update } from 'json-db' | ||
import { update } from '@talaikis/json-db' | ||
await update(baseDir, table, itemName, newJsonData).catch((e) => ...) | ||
@@ -43,3 +43,3 @@ ``` | ||
```js | ||
import { destroy } from 'json-db' | ||
import { destroy } from '@talaikis/json-db' | ||
await destroy(baseDir, table, itemName).catch((e) => ...) | ||
@@ -51,3 +51,3 @@ ``` | ||
```js | ||
import { list } from 'json-db' | ||
import { list } from '@talaikis/json-db' | ||
await list(baseDir, table).catch((e) => ...) | ||
@@ -59,3 +59,3 @@ ``` | ||
```js | ||
import { destroyTable } from 'json-db' | ||
import { destroyTable } from '@talaikis/json-db' | ||
await destroyTable(baseDir, table).catch((e) => ...) | ||
@@ -62,0 +62,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30049