Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

data-store

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-store - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

3

index.js

@@ -29,4 +29,3 @@ 'use strict';

* @param {String} `name` Store name. `foo` would result in `.foo.json`
* @param {String} `base` Dest base. If not defined, the user home directory
* is used, based on OS.
* @param {String} `base` Dest base. If not defined, the user home directory is used, based on OS.
* @api public

@@ -33,0 +32,0 @@ */

{
"name": "data-store",
"description": "Easily get, set and persist config data.",
"version": "0.3.0",
"version": "0.3.1",
"homepage": "https://github.com/jonschlinkert/data-store",

@@ -28,6 +28,2 @@ "author": {

},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"dependencies": {

@@ -40,2 +36,6 @@ "clone-deep": "^0.1.1",

},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"keywords": [

@@ -42,0 +42,0 @@ "cache",

@@ -5,3 +5,2 @@ # data-store [![NPM version](https://badge.fury.io/js/data-store.svg)](http://badge.fury.io/js/data-store)

## Install
## Install with [npm](npmjs.org)

@@ -42,3 +41,3 @@

## API
### [Store](index.js#L34)
### [Store](index.js#L33)

@@ -58,3 +57,3 @@ Initialize a new `Store` with the given `name` and `options`.

### [.set](index.js#L57)
### [.set](index.js#L56)

@@ -73,3 +72,3 @@ Assign `value` to `key` and save to disk. Can be a key-value pair or an object.

### [.get](index.js#L87)
### [.get](index.js#L86)

@@ -87,3 +86,3 @@ Get the stored `value` of `key`, or return all stored values if no `key` is defined.

### [.exists](index.js#L108)
### [.exists](index.js#L107)

@@ -101,3 +100,3 @@ Returns `true` if the specified `key` exists.

### [.save](index.js#L122)
### [.save](index.js#L121)

@@ -112,3 +111,3 @@ Save the store to disk.

### [.omit](index.js#L141)
### [.omit](index.js#L140)

@@ -126,3 +125,3 @@ Delete a property or array of properties from the store then re-save the store.

### [.delete](index.js#L163)
### [.delete](index.js#L162)

@@ -136,2 +135,3 @@ Delete the entire store. You must pass `{force: true}` if the path is outside the current working directory.

## Contributing

@@ -138,0 +138,0 @@ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/data-store/issues)

Sorry, the diff of this file is not supported yet

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