@libstermynal/transcripts-core
v1.4.3
Published
Modified renderer-only package based on `discord-message-transcript`.
Readme
@libstermynal/transcripts-core
Modified renderer-only package based on discord-message-transcript.
This package converts transcript JSON → HTML.
⚠️ This is a modified version intended for internal / custom use.
It is not the original discord-message-transcript package.
Installation
npm install @libstermynal/transcripts-core
yarn add @libstermynal/transcripts-core
pnpm add @libstermynal/transcripts-coreUsage
import { renderHTMLFromJSON } from "@libstermynal/transcripts-core";
const html = await renderHTMLFromJSON(jsonTranscriptString, {
returnType: "string",
selfContained: true
});Attribution
This package is based on and modifies functionality fromdiscord-message-transcript.
License
This project is licensed under the Apache-2.0 License.
This package contains modifications of work originally distributed under the same license.
