Added packaging for npm module 'commonmark'.

Published to npm.  Closes #21.  The 'stmd' package should be
deprecated.
This commit is contained in:
John MacFarlane 2014-11-04 21:10:04 -08:00
Родитель 7a787c3769
Коммит eb0576780e
3 изменённых файлов: 54 добавлений и 0 удалений

3
js/.npmignore Normal file
Просмотреть файл

@ -0,0 +1,3 @@
commonmark.js
*.tgz
index.html

24
js/README.md Normal file
Просмотреть файл

@ -0,0 +1,24 @@
CommonMark
==========
CommonMark is a rationalized version of Markdown syntax,
with a [spec][the spec] and BSD3-licensed reference
implementations in C and JavaScript.
For more information, see <http://commonmark.org>.
To play with this library without installing it, see
the live dingus at <http://spec.commonmark.org/dingus.html>.
This package includes the commonmark library and a
command-line executable, `commonmark`.
Basic usage example:
var reader = new commonmark.DocParser();
var writer = new commonmark.HtmlRenderer();
var parsed = reader.parse("Hello *world*");
var result = writer.render(parsed);
[the spec]: http://spec.commonmark.org

27
js/package.json Normal file
Просмотреть файл

@ -0,0 +1,27 @@
{ "name": "commonmark",
"description": "a strongly specified, highly compatible variant of Markdown",
"dist-tags": { "latest": "0.9.0" },
"versions": "0.9.0",
"homepage": "http://commonmark.org",
"keywords":
[ "markdown",
"commonmark",
"md",
"stmd" ],
"repository":
{ "type": "git",
"url": "https://github.com/jgm/CommonMark.git" },
"author": "John MacFarlane",
"bugs": { "url": "https://github.com/jgm/CommonMark/issues" },
"license": "BSD-3-Clause",
"version": "0.9.0",
"main": "./lib/index.js",
"bin": { "commonmark": "./bin/commonmark" },
"scripts": { "test": "node ./test.js" },
"directories": {
"lib": "./lib"
},
"engines": {
"node": "*"
}
}