Socket
Socket
Sign inDemoInstall

@kanaries/adapters

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @kanaries/adapters

`@kanaries/adapters` is a lib for features required to be running on both node and browser, but relay on a different implementation in different environment.


Version published
Weekly downloads
57
decreased by-40%
Maintainers
1
Install size
554 kB
Created
Weekly downloads
 

Readme

Source

@kanaries/adapters

@kanaries/adapters is a lib for features required to be running on both node and browser, but relay on a different implementation in different environment.

For example, storage in browser is implemented based on indexedDB while storage in node is implemented based on file system.

Usage

npm install --save @kanaries/adapter

# or

yarn add @kanaries/adapter

API

VIStorage

import { VIStorage } from '@kanaries/adapter';

const sto = new VIStorage('test');

sto.init();

sto.setItem('age', 100)

FAQs

Last updated on 15 Sep 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc