Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/cli/src/utils/netzo.ts>readDecodeAndAddFileContentToAssets

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function readDecodeAndAddFileContentToAssets
import { readDecodeAndAddFileContentToAssets } from "https://deno.land/x/netzo@0.5.16/cli/src/utils/netzo.ts";

Add 'content' field for each file entry by reading and decoding file content from disk.

USAGE: const projectAssets = await readDecodeAndAddFileContentToAssets(manifest)

Parameters

filesWithoutContent: Omit<Project["files"], "content">

{Omit<Project['files'], 'content'>} - a flat manifest of file entries without the 'content' field

Returns

Promise<Project["files"]>
  • a flat manifest of file entries