Skip to content

calclavia/dependency-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Resolver

The following exercise contains a JavaScript program that given an array of packages and their dependencies, returns a string that specifies the order to install all dependencies separated by a comma.

The code is written using ES6 JavaScript. The latest version of NodeJS is required.

Example input:

['KittenService: CamelCaser', 'CamelCaser: ']

Output:

'CamelCaser, KittenService'

The function to call is located in index.js called computeOrder.

If no such order is possible (contains cycles), the function will throw an exception.

Usage

Requirements:

  • Node v6.7.0
  • NPM

Setup:

npm install

Run unit tests:

npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors