From 2cac17388f2dd51d1edd63306c746758704c0eb2 Mon Sep 17 00:00:00 2001 From: talaikis Date: Fri, 23 Aug 2019 15:27:19 +0300 Subject: [PATCH] fix: readme --- README.md | 14 +++++++------- package.json | 10 +++++++--- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5ca2a13..38e106a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This is simple, no dependencies, local disk, table-level Node.js JSON database, ## Install ```bash -npm i json-local-db +npm i @talaikis/json-db ``` ## Fucntions @@ -15,42 +15,42 @@ All functions need `baseDir`, where the database is stored. For example: `join(_ ### Create item in a table ```js -import { create } from 'json-local-db' +import { create } from '@talaikis/json-db' await create(baseDir, table, itemName, jsonData).catch((e) => ...) ``` ### Read item from the table ```js -import { read } from 'json-local-db' +import { read } from '@talaikis/json-db' const jsonData = await read(baseDir, table, itemName).catch((e) => ...) ``` ### Update the item in a table ```js -import { update } from 'json-local-db' +import { update } from '@talaikis/json-db' await update(baseDir, table, itemName, newJsonData).catch((e) => ...) ``` ### Delete item from the table ```js -import { destroy } from 'json-local-db' +import { destroy } from '@talaikis/json-db' await destroy(baseDir, table, itemName).catch((e) => ...) ``` ### List table items ```js -import { list } from 'json-local-db' +import { list } from '@talaikis/json-db' await list(baseDir, table).catch((e) => ...) ``` ### Delete table ```js -import { destroyTable } from 'json-local-db' +import { destroyTable } from '@talaikis/json-db' await destroyTable(baseDir, table).catch((e) => ...) ``` diff --git a/package.json b/package.json index e545a10..e885746 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "json-local-db", - "version": "1.0.0", + "name": "@talaikis/json-db", + "version": "1.0.1", "description": "No dependencies local JSON database.", "main": "index.js", "scripts": { @@ -39,5 +39,9 @@ "pre-commit": "npm run test", "pre-push": "npm run test" } - } + }, + "directories": { + "test": "test" + }, + "dependencies": {} }