🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@mdscript/mds-napi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdscript/mds-napi

MDS compiler native Node.js bindings (napi-rs)

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@mdscript/mds-napi

Native Node.js bindings for the MDS (Markdown Script) compiler, built with napi-rs.

This is the high-performance backend used by @mdscript/mds on Node.js. Most users should depend on @mdscript/mds, not this package directly@mdscript/mds loads this native addon automatically and falls back to @mdscript/mds-wasm when a prebuilt binary is unavailable.

How it loads

This host package contains only the loader (index.js) and TypeScript types (index.d.ts). The compiled .node binaries ship in per-platform packages declared as optionalDependencies, filtered by os/cpu/libc:

Platform packageTarget
@mdscript/mds-napi-darwin-arm64macOS Apple Silicon
@mdscript/mds-napi-darwin-x64macOS Intel
@mdscript/mds-napi-linux-x64-gnuLinux x64 (glibc)
@mdscript/mds-napi-linux-x64-muslLinux x64 (musl)
@mdscript/mds-napi-linux-arm64-gnuLinux arm64 (glibc)
@mdscript/mds-napi-linux-arm64-muslLinux arm64 (musl)
@mdscript/mds-napi-win32-x64-msvcWindows x64

index.js selects the matching binary at runtime from process.platform, process.arch, and (on Linux) the detected libc.

API

const { compile, check, compileFile, checkFile } = require('@mdscript/mds-napi');

See index.d.ts for the full typed surface.

License

MIT — see LICENSE.

Keywords

markdown

FAQs

Package last updated on 06 Jun 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