Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@exodus/argo

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/argo

The inversion of control setup that powers the Exodus wallet SDK

latest
Source
npmnpm
Version
2.2.3
Version published
Maintainers
1
Created
Source

@exodus/argo

The inversion of control setup that powers the Exodus wallet SDK

Table of Contents

  • Quick Start

Quick Start

import createIOC from '@exodus/argo'
import geolocation from '@exodus/geolocation'
import potter from './potter'

// 1. Set up adapters to include a logger
const adapters = {
  createLogger: (prefix) => ({
    debug: (...args) => console.log(prefix, ...args),
  }),
}

// 2. Create ioc container
const ioc = createIOC({ adapters })

// 3. Use hydra and/or your own features
// See an example feature:
// https://github.com/ExodusMovement/exodus-hydra/tree/2a12c3e8568af4cdf689815ec7e70d2580ae9a6c/features/geolocation
ioc.use(geolocation())
ioc.use(potter({ glasses: true }))

// 5. Resolve instance
const instance = ioc.resolve()

FAQs

Package last updated on 25 Nov 2024

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