Skip to main content
Home

Built and signed on GitHub Actions

Node.js and Bun users should install this package from npm: https://npm.im/@mtkruto/parse

This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
76%
Published
8 months ago (0.0.1)

MTKruto Parse

A 1:1 clone of grammyjs/parse-mode modified to work with MTKruto.

Installation

Deno

deno add @mtkruto/parse

pnpm

pnpm add @mtkruto/parse

Yarn

yarn add @mtkruto/parse

npm

npm install @mtkruto/parse

Bun

bun add @mtkruto/parse

Usage

import { bold, fmt, italic, replyFmt } from "@mtkruto/parse";

client.use(replyFmt);

client.on("message", async (ctx) => {
  if (!ctx.from) return;
  await ctx.replyFmt(fmt`Hi, ${bold(fmt`your ID is ${italic(ctx.from.id)}`)}.`);
});

API Reference

https://jsr.io/@mtkruto/parse/doc

License

MIT

License File

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@mtkruto/parse

Import symbol

import * as parse from "@mtkruto/parse";
or

Import directly with a jsr specifier

import * as parse from "jsr:@mtkruto/parse";

Add Package

pnpm i jsr:@mtkruto/parse
or (using pnpm 10.8 or older)
pnpm dlx jsr add @mtkruto/parse

Import symbol

import * as parse from "@mtkruto/parse";

Add Package

yarn add jsr:@mtkruto/parse
or (using Yarn 4.8 or older)
yarn dlx jsr add @mtkruto/parse

Import symbol

import * as parse from "@mtkruto/parse";

Add Package

vlt install jsr:@mtkruto/parse

Import symbol

import * as parse from "@mtkruto/parse";

Add Package

npx jsr add @mtkruto/parse

Import symbol

import * as parse from "@mtkruto/parse";

Add Package

bunx jsr add @mtkruto/parse

Import symbol

import * as parse from "@mtkruto/parse";