← All procedures

fs.temp

Make a temporary folder

CLI
Package
@procedures/fs · README
Path
["fs","temp"]
CLI
mark fs temp
As data
{"$proc":["fs","temp"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/fs/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["fs","temp"], {});
console.log(JSON.stringify(result));

From the command line

$ mark fs temp

As data, in a program

{ "$proc": ["fs", "temp"], "input": {} }

Input

FieldTypeRequiredDefaultDescription
prefixstringnoThe start of the name of the folder (default "procedures-")

Output

FieldTypeRequiredDefaultDescription
pathstringyesThe path of the new folder
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "prefix": {
        "description": "The start of the name of the folder (default \"procedures-\")",
        "type": "string",
        "pattern": "^[A-Za-z0-9._-]{0,40}$"
      }
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "path": {
        "type": "string",
        "description": "The path of the new folder"
      }
    },
    "required": [
      "path"
    ],
    "additionalProperties": {}
  }
}