|
|
5 anni fa | |
|---|---|---|
| .. | ||
| bin | 5 anni fa | |
| dist | 5 anni fa | |
| src | 5 anni fa | |
| tests | 5 anni fa | |
| .gitignore | 5 anni fa | |
| .nvmrc | 5 anni fa | |
| README.md | 5 anni fa | |
| buildscript.txt | 5 anni fa | |
| package-lock.json | 5 anni fa | |
| package.json | 5 anni fa | |
A set of parsers for Latex logs.
Each parser is provided by a requirejs module, found in the dist directory. Each parser exposes a parse method which takes a
text string (representing the log to be parsed) and an options object.
Example:
define([
'path/to/latex-log-parser'
], function(LatexLogParser) {
var logText = "...";
var logEntries = LatexLogParser.parse(logText, {ignoreDuplicates: true});
});
First install dependencies:
$ npm install
Then run the compile npm task: npm run-script compile
Then the compiled modules will appear in the dist directory
The test are in tests/tests.js, to run them launch a http-server of
some kind from the root directory of this project, then visit /tests in a web browser.
Example:
$ npm install -g http-server
$ http-server
$ # now visit http://localhost:8080/tests in a browser