1.0.15 • Published 7 months ago

@vroskus/config-web v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@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> <start,end identifiers>

Default input file format:

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

If <start,end identifiers> is defined, the search pattern becomes:

<start>
  'PARAM',
  ...
<end>

Output file format:

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

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.11

7 months ago

1.0.10

8 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago