Skip to content

Commit abde101

Browse files
committed
Udpated docs
1 parent 9b196aa commit abde101

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ This will check for a directory at given path, if it does not exits, diskDB will
5252

5353
If the directory exists but the file/collection does not exist, diskDB will create it for you.
5454

55+
**Note** : If you have manually created an empty JSON file, please make sure that it contains at least an empty array.
56+
57+
```js
58+
[]
59+
```
60+
Else it will throw an error like
61+
62+
```bash
63+
undefined:0
64+
65+
^
66+
SyntaxError: Unexpected end of input
67+
```
68+
5569
### Load Collections
5670
Alternatively you can also load collections like
5771

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diskdb",
3-
"version": "0.1.11",
3+
"version": "0.1.12",
44
"main": "lib/diskdb.js",
55
"description": "A Light Weight Disk based JSON Database with a MongoDB like API",
66
"homepage": "http://arvindr21.github.io/diskDB",

0 commit comments

Comments
 (0)