New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

diesis-electrician

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diesis-electrician

Adapter to use electrician components in diesis

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-58.33%
Maintainers
1
Weekly downloads
 
Created
Source

diesis-electrician

This is an adapter for using electrician components in with Diesis.

How it works

You import the adapter like this:

const diesisElectrician = require('diesis-electrician')

Then you pass a map of electric components:

const deps = diesisElectrician(components)

You get back an object with a function for each electric component. And a function for stopping that component too.

const deps = diesisElectrician({
  config: new Conflab(),
  endpoints: new Endpoints(),
  metrics: new ElectricMetrics(),
  refdata: new Refdata(),
  server: new Server(),
})

deps.config() // start this service and all the deps
deps.refdata() // start this service and all the deps

deps.stopConfig() // stop this service and all the deps
deps.stopRefdata() // stop this service and all the deps

So you can use these reference as dependencies

const dependency = require('diesis').dependency
const doSomething = dependency([deps.config, deps.refdata], (config, refdata) => {
  // ...
})

Keywords

FAQs

Package last updated on 30 May 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc