🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

create-markdown

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-markdown

Minimal markdown package for creating and manipulating markdown content

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

create-markdown

npm version License: MIT

Markdown package to enable creating markdown interfaces seamlessly because it is complicated and annoying asf.

📦 View on npm

Installation

# Using bun (recommended)
bun add create-markdown

# Using npm
npm install create-markdown

# Using yarn
yarn add create-markdown

# Using pnpm
pnpm add create-markdown

Usage

import { createMarkdown } from 'create-markdown';

const doc = createMarkdown('# Hello World');
console.log(doc.content);

Default Export

import createMarkdown from 'create-markdown';

const doc = createMarkdown('# Hello World');
console.log(doc.content);

CommonJS

const { createMarkdown } = require('create-markdown');

const doc = createMarkdown('# Hello World');
console.log(doc.content);

With Options

import { createMarkdown, type MarkdownOptions } from 'create-markdown';

const options: MarkdownOptions = {
  strict: true,
  lineEnding: '\n',
};

const doc = createMarkdown('# My Document', options);

API

createMarkdown(content?, options?)

Creates a new markdown document.

Parameters:

  • content (string, optional): Initial markdown content
  • options (MarkdownOptions, optional): Configuration options
    • strict (boolean): Enable strict parsing mode
    • lineEnding (string): Custom line ending (default: '\n')

Returns: MarkdownDocument

  • content (string): Raw markdown content
  • meta (Record<string, unknown>): Document metadata

VERSION

Package version string.

import { VERSION } from 'create-markdown';

console.log(VERSION); // '0.1.1'

Development

# Install dependencies
bun install

# Build the package
bun run build

# Watch mode during development
bun run dev

# Clean build artifacts
bun run clean

# Run the playground
bun run playground

Requirements

  • Node.js 20+
  • Bun 1.0+ (for development)

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for release history.

License

MIT

Keywords

markdown

FAQs

Package last updated on 21 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts