In case you provide partial or empty url it will use base url http://localhost/ to fullfil it.
options
Type: Object
headers
Type: Object
Request headers.
json
Type: 'boolean'
Helper for json format specific headers. Adds accept and content-type headers with application/json value in case they aren't presented.
method
Type: string
Request method.
body
Type: stringObject
Request body. If you provide an object, it will be serialized via JSON.stringify.
args
Type: Array
Curl arguments.
Publish
Build package and publish under beta tag:
npm run build && npm publish --tag beta
Now you can install it using published version (npm install format-curl@<version>) and test it. When you finish, add a latest tag to the published version: