Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

standardjs-server

takase11214ISC1.0.2

A server for standard and nothing more

standard, linter, javascript, eslint, development, static-code-analysis

readme

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 is 8080
  • debug: Enables extra debug message. Default is false
  • token: Token for authorization with server (optional). Token is sent through Authorization header

There really isn't anything special going under the hood.

Endpoints

GET /lintGlob?cwd=CWD&file=GLOB

  • cwd is the current working directory as required by standard-engine
  • file is the glob to find files, or just a path to file

POST /lintText?cwd=CWD&file=GLOB

  • cwd is the current working directory as required by standard-engine
  • file is the filename of the text being linted

The body of the request is the text being linted in UTF-8