- Write a function which takes an npm package name as input and returns dependencies and it's dependencies so on. Ex: If given a package
a
with dependenciesx,y,z
andx
has dependencybook
. The function should returnx,y,z,book
. - You have to call npm API to fetch the dependencies.
- Just get the dependencies don't worry about dev, peer dependencies
- Just get dependecies of latest version of the package don't worry about other versions.
- The final output should be an array of dependecies without duplicates.
Last active
February 22, 2019 12:28
-
-
Save buildAI/fc630fa677ea73324556766cf4a26700 to your computer and use it in GitHub Desktop.
recursive_tree_parsing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment