Decode and save file input

Decode a file input and save it

Script windmill

by cedric ziel443 ยท 5/28/2023

  • Submitted by cedric ziel443 Deno
    Created 1080 days ago
    1
    import { decode } from "https://deno.land/std/encoding/base64.ts";
    2
    
    
    3
    export async function main(fileInput: string, outputFile: string) {
    4
      let fileOject = decode(fileInput);
    5
      Deno.writeFileSync(outputFile, fileOject);
    6
    
    
    7
      return {
    8
        "outputFile": outputFile,
    9
      };
    10
    }