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

octopus-start-modules

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octopus-start-modules

tasks for start that adds module management support

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

octopus-start-modules

install

npm install --save-dev octopus-start-modules

Usage

const {sync, where, list} = require('octopus-start-modules'),
  Start = require('start');

const start = new Start();

module.exports['modules:sync'] = start(sync());
module.exports['modules:where'] = start(where());
module.exports['modules:list'] = start(list());

API

sync(mutateVersion: version => version)

Returns a function that you can bind to exports and that will sync modules across multi-module repo. Syncing modules means:

  • if you have module a with version 1.0.0 and another module b depends on it, but depends on different version (ex. ~1.0.1), then modules b dependencies will be updated to match that of module a declared version.

Parameters:

  • mutateVersion - if you want ex. version to be synced to some special semver expression(~) you can do version => ^${version}. Defaults to `version => `~${version}

list()

Returns a function that you can bind to exports and that will simply print discovered modules.

where()

Returns a function that you can bind to exports and that will simply print discovered modules.

FAQs

Package last updated on 10 May 2017

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