0.0.15 • Published 5 years ago
realx v0.0.15
Realx
This is a fork from RelaxedJS to add more features to CLI such as :
- get locals from URL endpoint
- get locals from file
To have more info type :
realx -h
The api is the same from forked software, we add two specific methods :
-i, --input <path> OR path1,path2,pathN path(s) of json variables file(s) for pug rendering
-u, --url <url> url of json endpoint for pug rendering
You api response must be formatted as followed :
{ # an object containing any variables you want to inject in your pdf
"1": "",
"2": 123,
"3": true,
"n": false
}
Changelog (dd/mm/yyyy)
- 12/11/2019 : add
-d
command to debug variables fromlocals
,input
andurl
parameters so they can be print to console - 06/11/2019 : added a method to merge variables from
locals
,input
andurl
parameters can now be used simultaneously - 01/11/2019 : add
-i
,-u
commands.