Skip to content
Sign upLog in
← Back to Community

npm

Profile icon
tarmacjupiter

freecodecamp work
Working on these challenges will involve you writing your code using one of the following methods:

Clone this GitHub repo and complete these challenges locally.
Use our Repl.it starter project to complete these challenges.
Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.
When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the Solution Link field. Optionally, also submit a link to your project's source code in the GitHub Link field.

The package.json file is the center of any Node.js project or npm package. It stores information about your project, similar to how the section of an HTML document describes the content of a webpage. It consists of a single JSON object where information is stored in key-value pairs. There are only two required fields; "name" and "version", but it’s good practice to provide additional information about your project that could be useful to future users or maintainers.

If you look at the file tree of your project, you will find the package.json file on the top level of the tree. This is the file that you will be improving in the next couple of challenges.

One of the most common pieces of information in this file is the author field. It specifies who created the project, and can consist of a string or an object with contact or other details. An object is recommended for bigger projects, but a simple string like the following example will do for this project.

Voters
Profile icon
tarmacjupiter