@ishawnwang/config-ts

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @ishawnwang/config-ts

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.77 kB

Total Files

4

Last publish

Collaborators

  • ishawnwang