0.1.3 • Published 9 months ago

lenv-js v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

lenv-js

Manage symlinks from a root file to multiple destinations.

Useful for monorepos that use a single .env file as a source of truth for many child projects.

Usage

In the root of your project:

  1. Create a .env (or other named) file you want to symlink
  2. Create a .lenv file with the destination locations to symlink to, such as:
project/a/.env
project/b/.env
  1. Execute npm install --save-dev lenv-js to install lenv
  2. Create a run script in package.json:
{
  "scripts": {
    "lenv": "NODE_NO_WARNINGS=1 lenv",
  }
}
  1. Execute npm run lenv link to create symlinks

Use the -help flag to see all usage instructions.

WASI experimental warning

The Node.js implementation of the WebAssembly System Interface (WASI) is experimental. This module uses the WASI binary of lenv (which is written in Go), so you will see an experimental warning when running this module's bin scripts.

You can silence these warnings by declaring a truthy value for the NODE_NO_WARNINGS variable:

NODE_NO_WARNINGS=1 npx lenv-js@latest link
0.1.3

9 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago