🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.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

Source
npmnpm
Version
2.2.0
Version published
Weekly downloads
2.4K
-10.4%
Maintainers
1
Weekly downloads
 
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 09 Sep 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