Dough Git

clove/allInOne

web/src/lib/jpcl.ts

back to web/src/lib

/* src/lib/jpcl.ts
 * Copyright (c) 2026 Clove Nytrix Doughmination Twilight
 * Licensed under the DASL-1.2 Licence.
 * See LICENCE.md in the project root for full licence information.
 */

import { loads } from "jpcl-lang/core";

export const JPCL_MEDIA_TYPE = "application/jpcl";
export const JPCL_SOCKET_PROTOCOL = "jpcl";

export function readJpcl(text: string) {
  return loads(text, { integers: "number" });
}