1.0.117 • Published 1 year ago

@expo/template-file v1.0.117

Weekly downloads
4,591
License
BUSL-1.1
Repository
-
Last release
1 year ago

@expo/template-file

@expo/template-file provides file-level variable substitution (Mustache template style).

API

templateFile(templateFilePath: string, outputFilePath: string, envs: Record<string, string | number>): Promise<void>

Usage example

import templateFile from '@expo/template-file';

await templateFile('abc.json.template', 'abc.json', { ABC: 123, XYZ: 789 });

abc.json.template file contents:

{
  "someKey": {{ ABC }},
  "anotherKey": {{ XYZ }}
}

abc.json file should be created with the following contents:

{
  "someKey": 123,
  "anotherKey": 789
}

Repository

https://github.com/expo/eas-build/tree/main/packages/template-file

1.0.117

1 year ago

1.0.57

1 year ago

1.0.30

2 years ago

1.0.37

2 years ago

1.0.0

2 years ago

1.0.13

2 years ago

0.1.25

2 years ago

0.1.24

2 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.16-alpha.0

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

6 years ago