ryml v3.0.0
ryml
A command line tool to do HTTP request.
ryml enables you to write request parameters with yaml and frees you from annoying escaping.
Requirements
- Node.js
Install
$ npm i -g rymlUsage
Call ryml with no argument.
$ rymlThen the text editor opens so you write request parameters with yaml.
Instead of the text editor, ryml can also accept the standard input.
cat << END | ryml
url: https://api.github.com/search/users
method: get
ENDryml can take the arguments method and url.
$ ryml get https://api.github.com/search/usersParameters
Internally, ryml uses axios for the HTTP request,
and the parameters is passed to the axios function.
About the parameters, see here.
--quiet option
When you use the text editor to pass the request parameters,
you can't run the same command using command histories.
So by default ryml outputs the command you will run.
If you don't like this output, pass the --quiet (-q) option.
$ ryml -qEnvironment Variables Replacing
ryml replaces the environment variable name to the environment value.
For example, if the environment variable PASSWORD is hogehoge, ryml replaces the parameters
params:
password: PASSWORDto
params:
password: hogehoge