npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@se-ng/huppeldepup

v1.0.0

Published

huppeldepup is a CLI tool to help you manage environment variables for Angular projects in Angular CLI.

Downloads

3

Readme

❤️❤️❤️ Huppeldepup CLI, the missing link! ❤️❤️❤️

The Huppeldepup CLI is a command line interface to solve the missing link between environment variables and your Angular applicationS.

NOTE: This is a replacement system for using the fileReplacements option in the angular.json file. This is a more flexible solution. It works in a similar way as the fileReplacements option. However, it will replace the file before the angular build process starts.

When you run your Angular application in different environments, you usually have to change the code to adapt to the environment. With the Huppeldepup CLI you can use an environment variable to select the environment for your application. This way you can easily switch between environments without changing the code, or the build process. This means it becomes easier to deploy your application to different environments.

By default the Huppeldepup CLI will look for an environment variable called ANGULAR_ENV and use the value of that variable to select the environment. You can change the name of the environment variable with the --envVar option.

NOTE: Huppeldepup will add ANGULAR_ENV with the selected environment to the environment data found in your .json file. This way you can use the environment variable in your application.

Then it will look for a JSON file with the name of the environment variable in the ./environments folder. If it finds a file with that name, it will read the contents.

NOTE: The file must be a valid JSON file. The file extension must be .json.

The template is a TypeScript file that exports an object with the environment variables. The default template is embedded in the code. You can change the template with the --templateFile option. Then it read this file and replace the string /** placeholder */ in the template with the variables found in the JSON file.

Finally it will write the result to the file ./src/environments/environment.ts. You can change the output path and file name with the --outputPath and --fileName options.

🚀 Getting started

Installation

The package is available on npm.

for an global installation run:

npm install -g @se-ng/huppeldepup

You can also install it locally to your project:

npm install --save-dev @se-ng/huppeldepup

Usage

set the environment variable ANGULAR_ENV to the environment you want to use. create a folder ./environments in your project root and create a file for each environment you want to use.

Then update your package.json to run huppeldepup before your ng commands. similar to this example:

"scripts": {
    "huppeldepup": "huppeldepup",
    "prestart": "huppeldepup",
    "prebuild": "huppeldepup",
    "prewatch": "huppeldepup",
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },

You can now run npm start or npm run watch to start your application with the environment you set in ANGULAR_ENV.

Options

Overview of all comman line options

| option | meaning | default | short | | -------------- | ------------------------------------------- | -------------------------- | ----- | | --env | The environment to use | unset | -e | | --envVar | The name of the environment variable | ANGULAR_ENV | -v | | --envFolder | The folder containing the environment files | ./environments | -f | | --outputPath | The folder to write the environment to | ./src/environments | -o | | --fileName | The name of the file to write | environment.ts | -n | | --templateFile | The name of the template | environments/template.ts | | | --beQuiet | Suppress all output | false | | | --help | Show help | | | | --version | Show version number | | |

--env

You can also set the environment variable directly with the --env option. this will take precedence over the ANGULAR_ENV variable.

npm run huppeldepup --env=development