1.0.2 • Published 7 months ago
js-formatter-chatgpt-telegram v1.0.2
js-formatter-chatgpt-telegram
Converted Node.js package of formatter-chatgpt-telegram
Installation
To install the package, use npm:
npm install js-formatter-chatgpt-telegram
Usage
After installing, you can use the package in your Node.js application:
const { telegramFormat } = require('js-formatter-chatgpt-telegram');
const markdownText = `
# Heading
This is **bold** text and this is _italic_ text.
\`\`\`python
print('Hello, world!')
\`\`\`
[Link](http://example.com)
`;
const htmlText = telegramFormat(markdownText);
console.log(htmlText);