@caido/sdk-workflow
SDK
SDK
SDK =
object
The SDK object available to all scripts.
Properties
console
console:
Console
The console for logging.
This is currently the same as the global console.
env
env:
EnvironmentSDK
The SDK for the Environment service.
findings
findings:
FindingsSDK
The SDK for the Findings service.
graphql
graphql:
GraphQLSDK
The SDK for the GraphQL service.
hostedFile
hostedFile:
HostedFileSDK
The SDK for the HostedFile service.
projects
projects:
ProjectsSDK
The SDK for the Projects service.
replay
replay:
ReplaySDK
The SDK for the Replay service.
requests
requests:
RequestsSDK
The SDK for the Requests service.
runtime
runtime:
RuntimeSDK
The SDK for the runtime information.
scope
scope:
ScopeSDK
The SDK for the Scope service.
Methods
asString()
asString(
array:Bytes):string
Converts bytes to a string.
Unprintable characters will be replaced with �.
Parameters
| Parameter | Type |
|---|---|
array | Bytes |
Returns
string
Example
js
export function run(input, sdk) {
let parsed = sdk.asString(input);
sdk.console.log(parsed);
return parsed;
}