New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

inframod

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inframod

Local node modules registration and provisioning micro-framework

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

inframod

Provisions local interdependent node modules referenced as file dependencies so you don't have to do this manually for each one. Removes the need for packages to be published to npm or a local npm repo. Useful when you want to develop modular applications which rely on shared or common infrastructure local modules without having them deployed on npm.

Installation

The module is released in the public npm registry and can be installed by running:

npm install --save inframod

Usage

Module registration requires the definition of the following section within package.json containing the module registration array

"modules": [
    {
        "path": "/foo",
        "provisionCommand": "yarn install && yarn run build"
    },
    {
        "path": "/bar/bar",
        "provisionCommand": "yarn install && yarn run build"
    }
]

The required fields for a module definition are

  • path - the relative path of the module project (where the package.json for that module is located)
  • provisionCommand - the chain of commands to execute in order to build the module project

The provision-modules command builds a lightweight dependency graph and synchronously iterates it and provisions each module so that it's ready to be referenced by any consumer.

provision-modules --key-path modules

For details about this command run

provision-modules -h

Example

The example folder contains a use case which involves the creation of a base docker image containing the infrastructure modules referenced by a modular app.

Keywords

micro framework

FAQs

Package last updated on 21 Dec 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