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

workshopper-adventure-storage

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workshopper-adventure-storage - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

package.json
{
"name": "workshopper-adventure-storage",
"version": "2.0.2",
"version": "2.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,3 +40,3 @@ # workshopper-adventure-storage

## storage.save('name', data', cb)
## storage.save('name', data')
JSON encodes and writes a file to the storage directory. The following will

@@ -49,24 +49,17 @@ save the file as `index.json`.

}
storage.save('index', data, (err) => {
if (err) throw err
})
storage.save('index', data)
```
## storage.get('name', cb)
## storage.get('name')
Retrieves and unserializes a file from storage.
```js
storage.get('index', (err, data) => {
if (err) throw err
console.log(file)
})
var data = storage.get('index')
```
## storage.reset(cb)
## storage.reset()
Clears the storage directory.
```js
storage.reset((err) => {
if (err) throw err
})
storage.reset()
```

@@ -73,0 +66,0 @@

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