Sign In

multi-tool

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-tool

Install multiple versions of NPM packages via semver ranges

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
3
-88%
Maintainers
1
Weekly downloads
 
Created
Source

multi-tool | Install multiple versions of NPM packages via semver ranges

version versioning branching styling build

Install

$ npm install --save multi-tool

Usage

const install = require('multi-tool');

const install0230 = await install('ramda', '0.23.0'); // 'ramda@0.23.0'
const ramda0230 = require('ramda@0.23.0');
ramda0230.identity(0);

const install023x = await install('ramda', '0.23.x'); // 'ramda@0.23.x'
const ramda023x = require('ramda@0.23.x');
ramda023x.identity(0);

const installLatest = await install('ramda', 'latest'); // 'ramda@latest'
const ramdaLatest = require('ramda@latest');
ramdaLatest.identity(0);

const installInvalidPackage = await install('does-not-exist', 'latest'); // ''

const installInvalidVersion = await install('ramda', '99.99.99'); // ''

PROTIP: Any valid semver range that is also a valid (Li|U)nix directory name is supported.

Maintainers

  • Rocky Madden (@rockymadden)

Keywords

install

FAQs

Package last updated on 07 Feb 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