Comparing version 1.5.1 to 1.5.2
{ | ||
"name": "ldbjs", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "Create and manage local db files and data", | ||
"main": "./index.js", | ||
"keywords": [ | ||
"node", | ||
"backend", | ||
@@ -17,2 +18,3 @@ "frontend", | ||
"json", | ||
"JSON", | ||
"localstorage", | ||
@@ -19,0 +21,0 @@ "base64" |
@@ -68,3 +68,3 @@ # ldbjs | ||
### Getting the DB files name | ||
### Getting the DB files list | ||
@@ -74,11 +74,10 @@ ```javascript | ||
// ldb.dir is the project location | ||
ldb.createDB(ldb.dir, 'db'); | ||
ldb.createDB('.', 'db'); | ||
ldb.createDBFile(ldb.dir, 'db', 'test'); | ||
ldb.createDBFile(ldb.dir, 'db', 'hello'); | ||
ldb.json.createDBFile(ldb.dir, 'db', 'world'); | ||
ldb.createDBFile('.', 'db', 'test'); | ||
ldb.createDBFile('.', 'db', 'hello'); | ||
ldb.json.createDBFile('.', 'db', 'world'); | ||
// this return a table on console with the all files in the db | ||
ldb.getDBFiles(ldb.dir, 'db'); | ||
ldb.getDBFiles('.', 'db'); | ||
``` | ||
@@ -89,3 +88,3 @@ | ||
```javascript | ||
ldb.getDBFiles(ldb.dir, 'db', (files)=>{ | ||
ldb.getDBFiles('.', 'db', (files)=>{ | ||
console.log(files); | ||
@@ -92,0 +91,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
13198
255