Comparing version 0.1.7 to 0.2.0
{ | ||
"name": "jfs", | ||
"version": "0.1.7", | ||
"main": "./lib/Store", | ||
"description": "A simple JSON file store", | ||
"author": "Markus Kohlhase <mail@markus-kohlhase.de>", | ||
"homepage": "http://github.com/flosse/json-file-store", | ||
"bugs": "http://github.com/flosse/json-file-store/issues", | ||
"licenses": [{"type": "MIT"}], | ||
"engine": "node", | ||
"dependencies": | ||
{ | ||
"mkdirp": "~0.3.5", | ||
"node-uuid": "~1.4.1", | ||
"async": "~0.2.9", | ||
"clone": "~0.1.11" | ||
"name": "jfs", | ||
"version": "0.2.0", | ||
"main": "./lib/Store", | ||
"description": "A simple JSON file store", | ||
"author": "Markus Kohlhase <mail@markus-kohlhase.de>", | ||
"homepage": "http://github.com/flosse/json-file-store", | ||
"bugs": "http://github.com/flosse/json-file-store/issues", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=0.10" | ||
}, | ||
"devDependencies": | ||
{ | ||
"buster": "~0.7.8", | ||
"buster-coffee": "~0.1.4", | ||
"sinon": "~1.7.3", | ||
"coffee-script": "~1.6.3" | ||
"dependencies": { | ||
"mkdirp": "~0.5.0", | ||
"node-uuid": "~1.4.1", | ||
"async": "~0.9.0", | ||
"clone": "~0.1.18" | ||
}, | ||
"repository": | ||
[ | ||
"devDependencies": { | ||
"chai": "~1.9.2", | ||
"coffee-script": "~1.8.0", | ||
"coffeelint": "~1.6.1", | ||
"coveralls": "~2.11.2", | ||
"istanbul": "~0.3.2", | ||
"mocha": "~2.0.1" | ||
}, | ||
"repository": [ | ||
{ | ||
"type": "git", | ||
"url": "git://github.com/flosse/json-file-store.git" | ||
"url": "git://github.com/flosse/json-file-store.git" | ||
} | ||
], | ||
"maintainers": | ||
[ | ||
"maintainers": [ | ||
{ | ||
"name": "Markus Kohlhase", | ||
"email": "mail@markus-kohlhase.de", | ||
"web": "http://github.com/flosse/" | ||
"name": "Markus Kohlhase", | ||
"email": "mail@markus-kohlhase.de", | ||
"web": "http://github.com/flosse/" | ||
} | ||
], | ||
"scripts": { "test": "buster-test --node" } | ||
"scripts": { | ||
"pre-publish": "coffee -o lib/ -c src/*.coffee", | ||
"test": "./node_modules/.bin/mocha --reporter spec --compilers coffee:coffee-script/register spec/*.spec.coffee", | ||
"coveralls": "istanbul cover ./node_modules/.bin/_mocha --report lcovonly && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
} | ||
} |
@@ -76,8 +76,9 @@ # JSON file store | ||
### Single file mode | ||
### Single file DB | ||
If you want to store all objects in a single file, just set the `single` flag: | ||
If you want to store all objects in a single file, | ||
set the `type` option to `memory`: | ||
```javascript | ||
var db = new Store("data",{single:true}); | ||
var db = new Store("data",{type:'single'}); | ||
``` | ||
@@ -91,4 +92,16 @@ | ||
### In memory DB | ||
If you don't want to persist your data, you can set `type` to `memory`: | ||
```javascript | ||
var db = new Store("data",{type:'memory'}); | ||
``` | ||
## Tests | ||
npm test | ||
## License | ||
This project is licensed under the MIT License. |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
106
1
3297
6
2
0
2
+ Addedasync@0.9.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
- Removedasync@0.2.10(transitive)
- Removedmkdirp@0.3.5(transitive)
Updatedasync@~0.9.0
Updatedclone@~0.1.18
Updatedmkdirp@~0.5.0