Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pastedeno/mod.ts>Pastebin#createPasteFromFile

Universal Pastebin client for Deno/Node
Latest
method Pastebin.prototype.createPasteFromFile
import { Pastebin } from "https://deno.land/x/pastedeno@0.6.2/mod.ts";

Create a paste from a file

Parameters

optional
options: ICreatePasteFileOptions<Uint8Array> = [UNSUPPORTED]

{ ICreatePasteFileOptions } options for creating a paste

Returns

Promise<unknown>

returns the url of the created paste