Skip to content

Runtime Transform

Please read the guide for how to use this tool.

CLI

NPM version

Installation

bash
$ npm i -D @import-meta-env/cli

Usage

bash
$ npx import-meta-env -x .env.example

Related examples: docker

TIP

By default, import-meta-env will automatically replace all files in the common bundle output directories

You can override this behavior by passing the -p, --path <path...> option.

For more information, see API.

Without Node.js

The Single executable applications feature allows the distribution of a Node.js application conveniently to a system that does not have Node.js installed, you could use it to package the import-meta-env script into a node binary.

Released under the MIT License.