NPM.unarrayifyDependencies()

Un-flatten the provided array back into a traditional NPM dependencies dictionary.

Usage

Hover over inputs/exits for more info.

var NPM = require('machinepack-npm');


// Un-flatten the provided array back into a traditional NPM dependencies dictionary.

NPM.unarrayifyDependencies({

dependencies: [ { name: 'lodash', semverRange: '^2.4.1' } ],

}).execSync();

Inputs

dependencies required

A homogeneous array of dictionaries representing a set of dependencies.

[ { name: 'lodash', semverRange: '^2.4.1' } ]

Exits

error

An unexpected error occurred.

success

OK.

{}