Socket
Book a DemoInstallSign in
Socket

@artossystems/configured

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artossystems/configured

This is a tiny dependency injection framework.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
6
Created
Source

Configured

This is a tiny dependency injection framework.

Installation

npm install @artossystems/configured

Usage Example

Configuration

In the file src/configured.js

const configured = require('@artossystems/configured')

module.exports = configured({
    item1: function constructItem1 () {
      // item 1 is constructed here
      return ret
    },

    item2: function () {
      // item 2 is constructed here
      // can refer to item1 as `this.item1` at which point it will be
      // constructed
      return ret
    }  
  })

Using

const configured = require('./configured')
configured.item1.method('param1')

FAQs

Package last updated on 21 Jan 2021

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