how to create a package.json file in npm
npm init
how to create a package.json file in npm
npm init
npm get package.json version
node -pe "require('./package.json')['version']"
what is package.json
metadata specific to the project
a web application, Node.js module, or even just a plain JavaScirpt library.
identifies the project and acts as a baseline for users and contributors
to get information about the project.
contains a collection of any given project's dependencies
package.json version
$(node -pe 'require("./package.json")["version"]')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us