New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@beetcb/sstore

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beetcb/sstore

store things at severless function runtime

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
18
200%
Maintainers
1
Weekly downloads
 
Created
Source

npm

What the hack is sstore?

serverless-store is how you store tiny things at serverless function runtime temporarily,inspired by conf.

When to use it?

When you have a tiny piese of data(an expiring access-token, for example), sstore stores it for you to path /temp/conf/${md5('conf.json').

Better yet, sstore won't block any code execution during runtime.

How to use it?

const sstore = require('@beetcb/sstore')

exports.main = () => {
  // If `secret` is undefind, set it
  console.log(sstore.get('secret') || sstore.set('secret', 'xxx 🕊'))
  // Code logic is done, starts storing,
  sstore.close()
}

sstore.<method>:

  • get(key): get key's value
  • set(key, value): set key using value
  • del(key): delete key's value
  • clear(): delete all the key value pairs
  • close(): This is where the sstore really starts to store

Keywords

tcb

FAQs

Package last updated on 05 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts