Skip to content

iShawnWang/config-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config-TS

Read .ts config file with ease :D

Getting Started

Many node cli or bundler use .json .js as their config file, but it woule be better with .ts

This lib is Designed as a util to simplify this process. It's simplely rely on typescript compiler API, just compile the .ts config file to the tmpDir then require it.

import getConf from 'config-ts'

const config = getConf(<your config file full path>) // return a js object

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published