“Cambiar el nombre en el paquete JSON desde la línea de comandos” Código de respuesta

Cambiar el nombre en el paquete JSON desde la línea de comandos

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
Horrible Hamerkop

¿Qué es paquete.json en nodo?

All npm packages contain a file, usually in the project root, called package. json - this file holds various metadata relevant to the project. This file is used to give information to npm that allows it to identify the project as well as handle the project's dependencies.
Testy Tamarin

Respuestas similares a “Cambiar el nombre en el paquete JSON desde la línea de comandos”

Preguntas similares a “Cambiar el nombre en el paquete JSON desde la línea de comandos”

Más respuestas relacionadas con “Cambiar el nombre en el paquete JSON desde la línea de comandos” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código