Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including sgml with all npm packages installed. Try it out:

var sgml = require("sgml")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

sgml v0.0.25-alpha

library for parsing, templating, and serving SGML on the web - a Node.js library for parsing, templating, and serving SGML

This package contains the following components:

  • an API for parsing and processing SGML

  • an app for parsing and processing SGML on the command line (sgmlproc)

  • an expressjs (or Node.js core http) middleware for serving SGML as HTML on the web (sgml.middleware); a basic default web app (sgmlweb-app) is included as well

  • a browser app (sgml-ua.js and sgml-ua.min.js) for templating SGML on a web browser designed to work along with sgmlweb-app and sgml.middleware for offloading SGML processing from a web server to the browser

See for details on how to use

For reproducability, sgml-ua.min.js can be recreated from sgml-ua.js using Google's closure-compiler as follows (note for unknown reasons, npm install won't install closure-compiler as devDependency, even though manually unpacking the package using tar does).

tar xzf sgml-x.y.z.tgz
cd package
npm install --only=dev
npm run-script rebuild-sgmlua


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free