2.0.9 • Published 6 months ago

@ttoss/read-config-file v2.0.9

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

6 months ago

2.0.7

8 months ago

2.0.8

8 months ago

2.0.6

9 months ago

2.0.5

9 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.0.4

11 months ago

1.1.6

12 months ago

2.0.1

11 months ago

2.0.0

12 months ago

1.1.5

1 year ago

1.1.4

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