https://github.com/takase1121/standardjs-server
  
  
    A server for standard and nothing more 
    https://github.com/takase1121/standardjs-server
  
development eslint javascript linter standard static-code-analysis
        Last synced: 3 days ago 
        JSON representation
    
A server for standard and nothing more
- Host: GitHub
- URL: https://github.com/takase1121/standardjs-server
- Owner: takase1121
- Created: 2020-09-25T15:07:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-26T02:30:21.000Z (about 5 years ago)
- Last Synced: 2025-03-18T14:09:18.461Z (7 months ago)
- Topics: development, eslint, javascript, linter, standard, static-code-analysis
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # standardjs-server
 Recently I got into using [lite](https://github.com/rxi/lite).
 As usual, there is a [plugin for linter support](https://github.com/drmargarido/linters).
 However, the performance for [Standard](https://standardjs.com) 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`](https://github.com/standard/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`](https://github.com/standard/standard-engine)
> - `file` is the filename of the text being linted
>
> The body of the request is the text being linted in UTF-8