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

@suporka/storage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@suporka/storage

storage 管理工具

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

storage

To operate storage simply!

storage 管理工具

Getting started

use it in html

<script src="https://unpkg.com/@suporka/storage@1.0.0/lib/storage.umd.js"></script>
<script>
  const app = new storage({
    type: 'localStorage',
    encrypt: 'localStorage'
  })

  app.set('name', 'suporka')

  app.get('name') // suporka

  app.remove('name') // remove a key

  app.clear() // clear all

  // crypto
  storage.incry('text', 'key') // HwABHw==
  // decrypto
  storage.decyt('HwABHw==', 'key') // text
</script>

use it by npm

npm i @suporka/storage --save
import storage, { incry, decyt } from '@suporka/storage'

const app = new storage({
  type: 'localStorage',
  encrypt: 'localStorage'
})

app.set('name', 'suporka')

app.get('name') // suporka

app.remove('name') // remove a key

app.clear() // clear all

// crypto
incry('text', 'key') // HwABHw==
// decrypto
decyt('HwABHw==', 'key') // text

Questions or advise

If you have some question or advise, you can send me a E-mail,or create a issue.

FAQs

Package last updated on 06 May 2022

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