1.0.2 • Published 5 years ago
standardjs-server v1.0.2
standardjs-server
Recently I got into using lite.
As usual, there is a plugin for linter support.
However, the performance for Standard is lackluster on my machine
because Node.js can be slow to start + overheads, etc.
I created this server so that the plugin only have to call curl to lint the file.
Command-line options
port: Port, default is8080debug: Enables extra debug message. Default isfalsetoken: Token for authorization with server (optional). Token is sent throughAuthorizationheader
There really isn't anything special going under the hood.
Endpoints
GET /lintGlob?cwd=CWD&file=GLOB
cwdis the current working directory as required bystandard-enginefileis the glob to find files, or just a path to file
POST /lintText?cwd=CWD&file=GLOB
cwdis the current working directory as required bystandard-enginefileis the filename of the text being lintedThe body of the request is the text being linted in UTF-8
1.0.2
5 years ago