Olian04 / Recordari

Recordari is a type and structure validation tool for configuration files
MIT License
4 stars 0 forks source link

Include a CLI #2

Closed Olian04 closed 3 years ago

Olian04 commented 6 years ago

Since json is as popular as it is it would make sense to include a cli version of the library, so that devs can use this tool even with none node tech stacks.

Ex:

$ record config.json config.constraints.js
//config.json
{
  "name": "demo", 
  "count": 0
} 
//config.constraints.js

module.exports = R => ({
  name: R.String,
  count: R.Number
})

See: https://twobithistory.org/2017/09/21/the-rise-and-rise-of-json.html