client.join
Join array of strings with separator
browsernot registered- Package
- @procedures/client · README
- Path
["client","join"]- CLI
- Not a
markcommand: it is not in the default registry. - As data
{"$proc":["client","join"],"input":{}}- Tags
- core, string
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY, allCoreProcedures } from "@procedures/client";
for (const procedure of allCoreProcedures) {
if (!PROCEDURE_REGISTRY.has(procedure.path)) PROCEDURE_REGISTRY.register(procedure);
}
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["client","join"], { values: [], separator: "<separator>" });
console.log(JSON.stringify(result));As data, in a program
{
"$proc": ["client", "join"],
"input": { "values": [], "separator": "<separator>" }
}Input
| Field | Type | Required |
|---|---|---|
values | string[] | yes |
separator | string | yes |
Output
The schema does not list fields (string).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "The values"
},
"separator": {
"type": "string",
"description": "The separator"
}
},
"required": [
"values",
"separator"
]
},
"output": {
"type": "string",
"description": "The joined items"
}
}