0.0.2 • Published 2 years ago

ts-config-file v0.0.2

Weekly downloads
-
License
(MIT or CC0 1.0)
Repository
github
Last release
2 years ago

ts-config-file

Easily load config files for your package that are written in TypeScript; retrieves and imports all exports from a .ts file.

installation

npm i ts-config-file

usage

import {importTsConfigFile} from 'ts-config-file';

export async function loadMyConfig() {
    return await importTsConfigFile('path/to/my/ts/file.ts');
}
0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago