Socket
Socket
Sign inDemoInstall

jfs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jfs - npm Package Compare versions

Comparing version 0.1.7 to 0.2.0

64

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc