Parse NPM’s [login to view URL] into a [login to view URL] of Module objects (using our pre-supplied [login to view URL] class definition)

In Progress Posted 2 years ago Paid on delivery
In Progress Paid on delivery

We have a [login to view URL] class (see attachment). We require Java code that can convert any NPM compatible “[login to view URL]” file into a [login to view URL] of these Module objects.

Three notes:

1. The Module objects you store in the top-level LinkedHashMap should correspond to the direct dependencies specified in the NPM project’s top-level [login to view URL] file. However, the specific versions of these should come from the [login to view URL] file.

2. Each Module object itself can contain an additional sub LinkedHashMap containing its own sub-dependencies (a.k.a. transitive dependencies). These are stored in the “children” field of the Module object. These should come exclusively from the [login to view URL] file (I believe there is no need to reference the [login to view URL] file for these).

3. And so on – this data definition is recursive, and so the “children” Modules can themselves contain their own “children”, and so forth.

Requirements:

- Must work with Java 8.

- We require Java code to do this parsing for us.

- We also require a collection of JUnit tests to help ensure this logic is working correctly against diverse [login to view URL] variations. We are planning future projects based on Ruby ([login to view URL]), Python ([login to view URL]), Go ([login to view URL] + [login to view URL]) and other languages that support lock-files as well, and so we would like the JUnit tests to anticipate that.

See attached [login to view URL] code that you must use in your solution.

See attached [login to view URL] that contains 3 variations of "[login to view URL]" that must be parsed. We also included the "[login to view URL]" file these lock files correspond to.

References:

Documentation on NPM's [login to view URL] format is here: [login to view URL] . (Note: solution must support both 6.x and 7.x versions of the format).

Java JavaScript Node.js

Project ID: #30454624

About the project

9 proposals Remote project Active 2 years ago

Awarded to:

(2 Reviews)
3.2

9 freelancers are bidding on average $181 for this job

uniquejiji

Hello, how are you? I read your project description carefully, so I can handle this job perfect Because I am a java expert and have rich experience with java Please contact me and discuss more detail about project Than More

$200 USD in 2 days
(19 Reviews)
4.4
vladilavsuhovoy1

Hey! I am an expert Python programmer. I am familiar with Python and I have a lot of work experiences in JavaScript, Node.js and Java. I can start right away. I want to discuss for this project in detail. Please send More

$150 USD in 5 days
(7 Reviews)
3.8
bmoatar1

Hello, how are you doing now? I am happy to place my bid to your project. I have full experience with Java programming. I can convert the json file to the Java object with your requirements. I hope to contact with you More

$200 USD in 7 days
(4 Reviews)
2.0
bee05041

Hi, bro! I have read your requirement and I noticed that I am appropriate to this project. As a skillful software developer, I have rich experience with C/C++, Java, Python and NPM package json parsing I am really inte More

$70 USD in 3 days
(1 Review)
0.0
pythonworkforay

Hi, I am a java expert with 5 years' experience developing various java application. I have read through the project description and I understand all the requirement and deliverables for this project. I am certain I c More

$200 USD in 7 days
(1 Review)
0.0