Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

101
Vistas
Hide api key in package.json

I would like to open source a project that I have been working on. Currently, my package.json contains a build config that lists an API key that I want to keep private. Can I access environment variables from package.json and reference the key that way, or is there a way to extract the build config to another file and access it from package.json? I have found plenty of questions referencing mutating environment variables from package.json but I haven't come across how to read them.

{
  "name": "name",
  "version": "0.7.1",
  "build": {
    "apikey": "asdfw345r34t...",
  }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda