Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nexssp/markdown

nexssp445MIT1.1.0TypeScript support: included

Basic markdown functions.. eg markdown->terminal

markdown, terminal, nexss, nexss programmer

readme

@nexssp/markdown

  • 24.04.2025 - added Typescript support

This module is experimental.

Functions

  • toTerminal (markdownString) - Convert markdown string to the terminal with colouring..

Usage

const { toTerminal } = require('@nexssp/markdown')

const testMarkdownContent = require('fs').readFileSync(`${__dirname}/test-file.md`).toString()

console.log(toTerminal(testMarkdownContent))

OR

import { toTerminal } from '@nexssp/markdown'

import { readFileSync } from 'fs'
const testMarkdownContent = readFileSync(new URL('test-file.md', import.meta.url)).toString()

console.log(toTerminal(testMarkdownContent))

Example of markown for testing..

# Header 1

This is a test markdown

## Header 2

<!-- See more at tests/test-file.md -->