1 Commits

Author SHA1 Message Date
93df271f79 Merge pull request '1.0.2' (#9) from 1.0.2 into main
All checks were successful
Create Version Tag / version-check (push) Successful in 22s
Create Version Tag / build-release (push) Successful in 2m58s
Create Version Tag / publish-release (push) Successful in 32s
Reviewed-on: #9
2025-05-20 12:46:29 -07:00
2 changed files with 3 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@bearmetal/pdf-tools",
"version": "1.0.3",
"version": "1.0.2",
"license": "GPL 3.0",
"tasks": {
"dev": "deno run -A --env-file=.env main.ts",

View File

@@ -3,10 +3,8 @@ import { join } from "@std/path";
export async function getAsciiArt(art: string) {
try {
const artFilePath =
Deno.env.get("BEARMETAL_ASCII_PATH") || import.meta.dirname
? join(import.meta.dirname || "", "../asciiart.txt")
: "https://git.cyborggrizzly.com/BearMetal/pdf-tools/raw/branch/main/asciiart.txt";
const artFilePath = Deno.env.get("BEARMETAL_ASCII_PATH") ||
join(import.meta.dirname || "", "../asciiart.txt");
let artFileText: string;
if (artFilePath?.startsWith("http")) {
artFileText = await fetch(artFilePath).then((res) => res.text());