Add binary property to package JSON
This commit is contained in:
parent
1b852b8599
commit
a42d433950
@ -3,6 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "A miniature web API to render KaTeX for use in internal projects.",
|
"description": "A miniature web API to render KaTeX for use in internal projects.",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
|
"bin": "server.js",
|
||||||
"author": "Danila Fedorin",
|
"author": "Danila Fedorin",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -9,4 +9,5 @@ app.post('/render', (req, res) => {
|
|||||||
res.send(req.body.equations.map(eq =>
|
res.send(req.body.equations.map(eq =>
|
||||||
katex.renderToString(eq.str, { throwOnError: false, displayMode: eq.display })));
|
katex.renderToString(eq.str, { throwOnError: false, displayMode: eq.display })));
|
||||||
});
|
});
|
||||||
|
console.log('Starting KaTeX server');
|
||||||
app.listen(8000);
|
app.listen(8000);
|
||||||
|
Reference in New Issue
Block a user