NPM.arrayifyDependencies()

Flatten the provided depenencies dictionary into a homogeneous array of dictionaries.

Usage

Hover over inputs/exits for more info.

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


// Flatten the provided depenencies dictionary into a homogeneous array of dictionaries.

NPM.arrayifyDependencies({

dependencies: {},

}).execSync();

Inputs

dependencies required

A dependencies dictionary; i.e. from a package.json file

{}

Exits

error

An unexpected error occurred.

success

OK.

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