From 68bf5ad1ae794469637cdeed94252c5269c23452 Mon Sep 17 00:00:00 2001 From: FullGreaM Date: Sat, 11 Jun 2022 15:27:11 +0300 Subject: [PATCH] npm data upload --- README.md | 13 ++++++++++++- package.json | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 package.json diff --git a/README.md b/README.md index 80b1640..305a9a7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,17 @@ # SQLEasy.js module for simple works from sqlite3 (JavaScript edition) -## Prepare for work +## Prepare for work (install from github) +Use npm from install in your project: +```bash +npm install sql-easy-lib +``` +import database object in your project +``` javascript +const SQLEasy = require('sql-easy-lib'); +var database = new SQLEasy.database('/path/to/database.db'); +``` +This object have 4 methods: add, remove, set, get +## Prepare for work (install from github) My module use module **better-sqlite3**, you must download it. ```bash npm install better-sqlite3 diff --git a/package.json b/package.json new file mode 100644 index 0000000..46ac778 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "sql-easy-lib", + "version": "0.9.0", + "description": "(Legacy version of SQLEasy library)", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Nikiroy78/SQLEasy.js.git" + }, + "author": "FullGreaM", + "license": "ISC", + "bugs": { + "url": "https://github.com/Nikiroy78/SQLEasy.js/issues" + }, + "homepage": "https://github.com/Nikiroy78/SQLEasy.js#readme" +}