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

@mdscript/mds-wasm

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-wasm

WebAssembly build of the MDS (Markdown Script) compiler — used as the portable fallback by @mdscript/mds

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@mdscript/mds-wasm

WebAssembly build of the MDS (Markdown Script) compiler.

This package is the portable fallback used by @mdscript/mds when the native addon (@mdscript/mds-napi) is unavailable, and it powers the browser build. Most users should depend on @mdscript/mds, not this package directly. @mdscript/mds selects the native addon on Node and this WASM build on the web (or as a Node fallback) automatically.

What's inside

Two builds, selected by package exports conditions:

ConditionEntryModule typeInit
nodedist/node/mds_wasm.jsCommonJS (wasm-pack --target nodejs)none
browser / defaultdist/web/mds_wasm.jsESM (wasm-pack --target web)call default() with the .wasm URL

Each build exposes compile(source, options), check(source, options), and scanImports(source).

Build

npm run build -w @mdscript/mds-wasm

Requires wasm-pack and the wasm32-unknown-unknown Rust target. Output is written to dist/node and dist/web.

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