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

@binyamin/data-cache

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binyamin/data-cache - npm Package Versions

2.0.0

Diff

Changelog

Source

2.0.0 - 2023-03-29

Added

  • get() - If "key" has child keys (ie. it's a directory), return the children's contents as a JSON object.

Changed

  • Breaking - Move to ESM
  • Breaking - Requires Node.js v16 or greater
  • Updated dependencies

Removed

  • Using this module via require() (ie, commonjs) is no longer supported.
b3u
published 1.1.0 •

Changelog

Source

1.1.0 - 2020-09-15

Added

  • Add Typescript definitions ("typedefs").
b3u
published 1.0.1 •

Changelog

Source

1.0.1 - 2020-09-09

Fixed

  • JSON content should return as JSON, not as string.
  • When reading JSON content, add a .json extension to the key.
b3u
published 1.0.0 •

Changelog

Source

1.0.0 - 2020-09-08

Added

  • get() method retrieves a value from the cache, using the provided key.
  • set() method initializes or modifies a value from the cache, using the provided key and value.
  • set() method accepts an optional 3rd parameter "ext", which, for JSON content, will parse the value as JSON before returning.
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