Module: mock-npm-install

mock-npm-install
Source:

Methods

(static) install(opts) → {object}

install mock package
Parameters:
Name Type Description
opts object
Properties
Name Type Attributes Description
package object <optional>
obj representation of package.json
nodeModulesDir nodeModulesDir <optional>
Source:
Returns:
package.json js obj rep
Type
object

(static) remove(opts)

remove mock package
Parameters:
Name Type Description
opts object
Properties
Name Type Attributes Description
name string package name to remove
nodeModulesDir nodeModulesDir <optional>
Source: