@rqt/proxy
is A proxy request server.
yarn add -E @rqt/proxy
The package is available by importing its default function:
import proxy from '@rqt/proxy'
Call this function to get the result you want.
Config
: Options for the program.
Name | Type | Description | Default |
---|---|---|---|
shouldRun | boolean | A boolean option. | true |
text* | string | A text to return. | - |
/* yarn example/ */
import proxy from '@rqt/proxy'
(async () => {
const res = await proxy({
text: 'example',
})
console.log(res)
})()
example
(c) Rqt 2018