This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@velin-dev/ml
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

@velin-dev/ml

Parse Vue SFC or Markdown to prompt for LLM.

Preview

Preview

Usage

Markdown

import { processMarkdown } from '@velin-dev/ml'

const markdown = await processMarkdown(markdownString, {
  language: ref('TypeScript'), // The data to be passed to the prompt
})

Vue SFC

import { renderSFC } from '@velin-dev/ml'

const html = await renderSFC(source, {
  language: ref('TypeScript'), // The data to be passed to the prompt
})
import { renderSFCToMarkdown } from '@velin-dev/ml'

const markdown = await renderSFCToMarkdown(source, {
  language: ref('TypeScript'), // The data to be passed to the prompt
})

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @velin-dev/ml

Weekly Downloads

0

Version

1.3.0

License

MIT

Unpacked Size

58.4 kB

Total Files

43

Last publish

Collaborators

  • luoling8192
  • nekomeowww