Xomlo.io
  • Using Xomlo.io SDK
    • Getting started
    • Payload
    • Working with the filesystem
    • Configuration file
    • SDK Reference
    • Deploy connector & using API
    • Introduction to models
  • Model reference
    • Slack
Powered by GitBook
On this page

Was this helpful?

  1. Using Xomlo.io SDK

Working with the filesystem

If you need to create a file (e.g. creating XML feeds) or to work with the filesystem, you should use our .saveOutput() function.

import { functions } from "@xomlo/xomlo-sdk";

functions.main(async () => {
    await functions.storage.saveOutput('test.txt', 'test');
});

Function .saveOutput() expects two parameters - the name of the created file and content. This example will store the test.txt file into the ./output folder which will contain the following string: test.

PreviousPayloadNextConfiguration file

Last updated 3 years ago

Was this helpful?