1.0.57 • Published 4 months ago

@expo/template-file v1.0.57

Weekly downloads
4,591
License
BUSL-1.1
Repository
-
Last release
4 months 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.57

4 months ago

1.0.30

9 months ago

1.0.37

9 months ago

1.0.0

1 year ago

1.0.13

12 months ago

0.1.25

1 year ago

0.1.24

1 year ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16-alpha.0

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago