@vroskus/config-web

1.0.5 • Public • Published

@vroskus/config-web

Tool for preparing config.js file. It consumes process.env. and produces .js file with values.

Installation

Call:

npm install -D @vroskus/config-web

yarn add -D @vroskus/config-web

Usage

Just run config-web <input file path> <output file path>

Input file format:

const params: Array<keyof $Config> = [
  'PARAM',
  ...
];

Output file ormat:

var config = {
  PARAM: "VALUE", 
  ...
};

Readme

Keywords

Package Sidebar

Install

npm i @vroskus/config-web

Weekly Downloads

11

Version

1.0.5

License

MIT

Unpacked Size

4.77 kB

Total Files

4

Last publish

Collaborators

  • vroskus