GochoMugo / json-concat

A Node.js module for concatenating JSON files and objects. Blends in Connect, Express and your terminal
MIT License
3 stars 2 forks source link

Callback could be optional #5

Open deybydjimenez opened 1 year ago

deybydjimenez commented 1 year ago

Hi, I noticed if you don't define a callback on the usage it will throw an exception. Can you make it optional? I think sometimes you don't really need a callback (which is my current scenario)

jsonConcat({
    src: ["appVars.json", "userVars.json"],
    dest: "./config.json"
})

It's annoying to have an empty callback and ESLinter is driving me crazy!

GochoMugo commented 1 year ago

@deybydjimenez Could you open a PR for it?