Registry / data / prose
library0.0.1jsnpmunverified

An experimental literate programming toolkit that reads markdown files and extracts code blocks to produce executable JavaScript programs. Current version 0.0.1 is a proof-of-concept released in 2013 with no further updates. It uses marked for markdown parsing and focuses on embedding code in markdown using shebang language declarations. Unlike other literate programming tools (e.g., Org-mode, Jupyter), prose is minimal and language-agnostic but limited to JavaScript/altJS compilation. It has no active maintenance or releases.

npm install prose
INSTALL
IMPORT
SIG · PROSE
P
prose
datajavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

main
const main = require('prose')
import main from 'prose'
Package only supports CommonJS; no ESM exports. The module exports a single function `main` via `module.exports = main`.
transpile
const { transpile } = require('prose')
transpile is not exported; it's internal to the module. Only `main` is exported.

Demonstrates invoking prose as a module (only exports main) or CLI tool to transpile markdown to JavaScript.

const prose = require('prose'); const fs = require('fs'); // Create a simple markdown input with code blocks const input = '# Hello\n\nThis is a sample program:\n\n #!/usr/bin/env javascript\n console.log("Hello, world!");\n\nThe end.'; const inputStream = fs.createReadStream(); // not practical; typical usage is stdin // Instead, run as CLI: // echo -e '# Example\n\n #!/usr/bin/env javascript\n console.log("Hello");' | node prose // Or capture output via shell. console.log('See CLI usage.');
prose --version
Debug
Known issues
deprecatedPackage is unmaintained since 2013; may have security vulnerabilities in marked dependency.
fix
Avoid using in production. Consider alternatives like literate-programming or org-mode.
affects: 0.0.1
gotchaOnly JavaScript (via shebang) is actually supported despite claims of compiling any altJS language.
fix
Check source: no transpilation logic for other languages exists.
affects: 0.0.1
gotchaCLI usage: if arguments provided, it loads a module instead of transpiling stdin. This is undocumented.
fix
Run with no arguments to trigger stdin mode; otherwise provide a path to load a module.
affects: 0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'marked'
marked is listed as a dependency but not installed automatically; missing from package.json dependencies (only devDependencies).
fix
Run `npm install marked` in your project.
ReferenceError: path is not defined
The module uses `path` without requiring it (in `path.resolve`) when loading a module via CLI argument.
fix
Patch source to add `const path = require('path')` at top.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
markedoptionalCore dependency for parsing markdown into tokens, used to extract code blocks.
Agent activity
4 hits · last 30 days
node
4
Resources
prose — npm install prose · libregistry