manual
v1.0.2
Published
Functions and constants for man page generation
Downloads
283
Readme
manual
Functions and constants for man page generation.
Used by the command module and the mdp program.
Install
npm i manualConstants are shown below see index.js for function definitions.
{
"NAME": "name",
"SYNOPSIS": "synopsis",
"DESCRIPTION": "description",
"COMMANDS": "commands",
"OPTIONS": "options",
"ENVIRONMENT": "environment",
"FILES": "files",
"EXAMPLES": "examples",
"EXIT": "exit",
"HISTORY": "history",
"AUTHOR": "author",
"BUGS": "bugs",
"COPYRIGHT": "copyright",
"SEE": "see",
"SECTION": 1,
"constants": {
"NAME": "name",
"SYNOPSIS": "synopsis",
"DESCRIPTION": "description",
"COMMANDS": "commands",
"OPTIONS": "options",
"ENVIRONMENT": "environment",
"FILES": "files",
"EXAMPLES": "examples",
"EXIT": "exit",
"HISTORY": "history",
"AUTHOR": "author",
"BUGS": "bugs",
"COPYRIGHT": "copyright",
"SEE": "see"
},
"sections": [
"User Commands",
"System Calls",
"Library Functions",
"Special Files",
"File Formats",
"Games",
"Miscellanea",
"System Administration"
],
"layout": [
"name",
"synopsis",
"description",
"commands",
"options",
"environment",
"files",
"examples",
"exit",
"history",
"author",
"bugs",
"copyright",
"see"
],
"headers": {
"synopsis": "usage",
"arguments": "arguments",
"see": "see also"
},
"elements": {
"th": ".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n",
"sh": ".SH \"%s\"\n",
"ss": ".SS \"%s\"\n",
"sp": ".SP\n",
"b": ".B ",
"pp": ".PP\n%s\n",
"tp": ".TP\n",
"ti": ".TI\n",
"fb": "\\fB",
"fi": "\\fI",
"fr": "\\fR",
"lt": ".LT\n%s\n",
"bl": ".BL\n",
"it": ".IP \"\\[ci]\" 4\n%s\n",
"el": ".EL\n",
"br": ".br\n",
"comment": ".\\\" %s\n"
}
}Developer
Clone the repository, install project and global dependencies (mdp, jshint and jscs):
npm i && npm i -g mdp jshint jscsTest
Run the test specifications:
npm testCover
Generate code coverage:
npm run coverLint
Run the source tree through jshint and jscs:
npm run lintClean
Remove generated files:
npm run cleanReadme
Generate the readme file (requires mdp):
npm run readmeLicense
Everything is MIT. Read the license if you feel inclined.
Generated by mdp(1).
