---
title: "Discussion on \"Package.json vs Package-lock.json\" | Hashnode"
description: "Discussion on \"Package.json vs Package-lock.json\". package.json and package-lock.json are both files used in Node.js projects to manage dependencies, but they serve different purposes.\npackage.json:\n\n\npackage.json is the manifest file for your Node.js project. It contains metadata about your project,..."
url: "https://hashnode.com/posts/packagejson-vs-package-lockjson/64d9db50cb533462031a73da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Package.json vs Package-lock.json](https://madmecodes.hashnode.dev/packagejson-vs-package-lockjson?utm_source=hashnode&utm_medium=feed)

package.json and package-lock.json are both files used in Node.js projects to manage dependencies, but they serve different purposes. package.json: package.json is the manifest file for your Node.js project. It contains metadata about your project,...

Aug 14, 2023 · 2 min read · madmecodes.hashnode.dev  
Read the article

-   [#package](https://hashnode.com/tag/package)
-   [#packagejson](https://hashnode.com/tag/packagejson)
-   [#package-lockjson](https://hashnode.com/tag/package-lockjson)

## Written by

[Ayush Gupta](https://hashnode.com/@ayushGuptaDev)

@ayushGuptaDev · India

  
[View profile](https://hashnode.com/@ayushGuptaDev)

Computer Science

Pursuing Computer Science.

## Responses 1

Markdown supported · ⌘↵ to post

[Pravesh Sudha](https://hashnode.com/@praveshstwt1)

[Aug 24, 2023](https://hashnode.com/posts/packagejson-vs-package-lockjson/64d9db50cb533462031a73da/comment/64e6e3d106aee9f0bdb4ff1d)

Very Well Explained
