2.0.9 • Published 5 months ago

@ttoss/read-config-file v2.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 months ago

2.0.7

7 months ago

2.0.8

7 months ago

2.0.6

8 months ago

2.0.5

8 months ago

2.0.3

10 months ago

2.0.2

10 months ago

2.0.4

10 months ago

1.1.6

11 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.1

1 year ago

1.1.3

1 year 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