Answers for "how to open package.json in cmd"

4

how to create a package.json file in npm

npm init
Posted by: Guest on October-03-2020
1

change name in package json from command line

cd some/node/project

# Get stuff from package.json
npe name
npe scripts
npe scripts.test
npe repository.url
open $(npe repository.url)

# Set stuff in package.json
npe name foo
npe scripts.start "node index.js"

# Keywords string will be turned into an array
# If commas are present, they'll be the delimiter. Otherwise spaces.
npe keywords "foo, bar, cheese whiz"
npe keywords "foo bar baz"

# The current working directory's package.json is used by default,
# but you can point to another package file with a flag:
npe name --package=some/other/package.json
npe name other --package=some/other/package.json
Posted by: Guest on October-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language