2.0.9 • Published 4 months ago

@ttoss/read-config-file v2.0.9

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

@ttoss/read-config-file

This package is a simple utility to read a configuration file in multiple formats:

  • .json
  • .yaml / .yml
  • .js
  • .ts

ESM Only

This package is ESM only.

Installation

pnpm add @ttoss/read-config-file

Usage

import { readConfigFile, readConfigFileSync } from '@ttoss/read-config-file';

const config1 = await readConfigFile({ configFilePath: 'path/to/config.json' });

const config2 = readConfigFileSync({
  configFilePath: 'path/to/config.json',
});
2.0.9

4 months ago

2.0.7

6 months ago

2.0.8

6 months ago

2.0.6

7 months ago

2.0.5

7 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.4

9 months ago

1.1.6

10 months ago

2.0.1

9 months ago

2.0.0

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.1

1 year ago

1.1.3

12 months ago

1.1.2

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago