Never Punch Manticores
Introducing npm Teams! Private packages + team management tools.Learn more »

sgml

0.0.28-alpha • Public • Published

sgmljs.net - 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 http://sgmljs.net for details on how to use sgmljs.net.

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

Keywords

none

Install

npm i sgml

DownloadsWeekly Downloads

51

Version

0.0.28-alpha

License

LGPL-3.0-or-later

Unpacked Size

3.86 MB

Total Files

83

Homepage

sgmljs.net

Last publish

Collaborators

  • avatar