Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynmod

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynmod - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

4

js/dynmod-cli.js

@@ -108,3 +108,3 @@ #!/usr/bin/env node

} else {
return error(new Error('No such binary for ' + spec + ': ' + bin + '. Available: ' + bin_list.join(',')));
return error(new Error('No such binary for ' + spec + ': ' + bin + '. Available: ' + bin_list.join(', ')));
}

@@ -114,3 +114,3 @@ } else if (bin_list.length === 1) {

} else {
return error(new Error('Multiple binaries are available for ' + spec + ': ' + bin_list(',') + '. Please select one.'));
return error(new Error('Multiple binaries are available for ' + spec + ': ' + bin_list.join(', ')));
}

@@ -117,0 +117,0 @@ });

{
"name": "dynmod",
"version": "0.7.0",
"version": "0.7.1",
"description": "Node module loader (e.g. replacement for the 'require' command for npm packages) with auto-install support and ability to handle multiple versions",

@@ -5,0 +5,0 @@ "main": "js/dynmod.js",

@@ -18,3 +18,4 @@ dynmod

# Install
## Global install makes it available for all of your projects plus it makes the command line version available system wide. Requires administrator permissions (sudo).
## Global install makes it available for all of your projects plus it makes the command line version available system-wide
### Requires administrator permissions (sudo)
[sudo] npm install dynmod -g

@@ -28,54 +29,50 @@ ## Local install

#### Require module(s) - auto-install them as needed
#### A *spec* is a name of an npm package with optional version specificiation. E.g. 'express' or 'express@3.5.0'
var dynmod = require('dynmod');
// Asynchronous:
dynmod.**require**('*spec*'[, '*spec2*', ...], function callback(err, module[, module2, ...]) {});
dynmod.require('package[@version]'[, 'package[@version]', ...], function callback(err, module[, module, ...]) {});
// Synchronous:
var module = dynmod.**require**('*spec*');
var modules_array = dynmod.**require**('*spec1*'[, '*spec2*', ...]);
var module = dynmod.require('package[@version]');
var modules_array = dynmod.require('package[@version]'[, 'package[@version]', ...]);
// Will also work with just calling dynmod (e.g. not 'dynmod.require') :
dynmod('*spec*', function callback(err, module) {}); // short asynchronous require
var module = dynmod('*spec*'); // short synchronous require
dynmod('package[@version]', function callback(err, module) {}); // short asynchronous require
var module = dynmod('package[@version]'); // short synchronous require
### list
#### Get locally installed version(s) of a module(s)
#### A *package* is a name of an npm package. E.g. 'express'
var dynmod = require('dynmod');
// Asynchronous:
dynmod.**list**('*package*', function callback(err, versions) {});
dynmod.**list**(['*package1*', '*package2*'], function callback(err, versions_per_packages_dictionary) {});
dynmod.list('package', function callback(err, versions) {});
dynmod.list(['package', 'package', ...], function callback(err, versions_per_packages_dictionary) {});
// Synchronous:
var versions = dynmod.**list**('*package*');
var versions_per_packages_dictionary = dynmod.**list**(['*package1*', '*package2*']);
var versions = dynmod.list('package');
var versions_per_packages_dictionary = dynmod.list(['package', 'package', ...]);
### install
#### Install module(s) locally
#### A *spec* is a name of an npm package with optional version specificiation. E.g. 'express' or 'express@3.5.0'
var dynmod = require('dynmod');
// Asynchronous:
dynmod.**install**('*spec*'[, '*spec2*', ...], function callback(err, version[, version2, ...]) {});
dynmod.install('package[@version]'[, 'package[@version]', ...], function callback(err, version[, version, ...]) {});
// Synchronous:
var version = dynmod.**install**('*spec*');
var versions_array = dynmod.**install**('*spec1*', '*spec2*'[, ...]);
var version = dynmod.install('package[@version]');
var versions_array = dynmod.install('package[@version]', 'package[@version]'[, ...]);
### remove
#### Remove locally installed modules
#### A *spec* is a name of an npm package with optional version specificiation. E.g. 'express' or 'express@3.5.0'
var dynmod = require('dynmod');
// Asynchronous:
dynmod.**remove**('*spec*'[, '*spec2*', ...], function callback(err) {});
dynmod.remove('package[@version]'[, 'package[@version]', ...], function callback(err) {});
// Synchronous:
dynmod.**remove**('*spec*'[, '*spec2*', ...]);
dynmod.remove('package[@version]'[, 'package[@version]', ...]);
## Command line examples
### Install
dynmod install *spec* [*spec2* ...]
dynmod install package[@version] [package[@version] ...]
### Remove
dynmod remove *spec* [*spec2* ...]
dynmod remove package[@version] [package[@version] ...]
### List
dynmod list [*package* *package2* ...]
dynmod list [package package ...]
### Run binary
dynmod-run *spec* [binary-name]
dynmod-run package[@version] [binary-name]

Sorry, the diff of this file is not supported yet

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