5.0.3 • Published 4 years ago

jsonfile-generator v5.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

json file generator

  • 動態產生json檔案

安裝指令

  • npm i -g jsonfile-generator

使用方式

  • 新增一個名為Sample的資料夾
  • 在Sample資料夾中建立兩個json檔
    • master.json (主要的json資料)
    • config.json (各個系統運作環境所需要的json資料)
  • master.json檔加入以下json文字範例
{
    "FileNmae":"Master"
}
  • config.json檔加入以下json文字範例
{
    "appsetting.Developmnet": {
        "target": "dev"
    },
    "appsetting.Staging": {
        "target": "staging"
    },
    "appsetting.Production": {
        "target": "prod"
    }
}
  • 與Sample資料夾同一層的command line界面裡輸入 jsonfile-generator -f Sample
  • 最後在Sampple資料夾裡會產生一個Output資料夾,裡面會有三個json檔
    • appsetting.Development.json
    • appsetting.Staging.json
    • appsetting.Production.json

Github Repository

5.0.3

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago