2.2.6 • Published 9 months ago

config2ts v2.2.6

Weekly downloads
3
License
ISC
Repository
github
Last release
9 months ago

config2ts

convert config to ts file.

install

run command: npm install -g config2ts

how to use

config2ts -d config -o dist -m csv.ts

support type

csv fieldtypescript type
Indexstring
Stringstring
Numbernumber
Booleanboolean
Enumtype
String[]string[]
Number[]number[]
Enum[]type[]
  • Number support Infinity and NaN
  • Enum support empty string type
  • Enum[] do not include empty string type

Usage

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -d, --dir <path>       set convert path. default: ./
    -o, --outDir <path>    set outDir path. default: ./
    -p, --prefix <prefix>  set interface prefix. default: ""
    -s, --suffix <suffix>  set interface suffix. default: "Csv"
    -m, --merge <name>     merge all to one ts file. default: csv.ts
2.2.5

9 months ago

2.2.4

9 months ago

2.2.6

9 months ago

2.2.3

9 months ago

2.2.1

2 years ago

2.1.2

2 years ago

2.2.0

2 years ago

2.1.4

2 years ago

2.2.2

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.0

7 years ago

2.0.0

7 years ago