New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint_d

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint_d

Makes eslint the fastest linter on the planet

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41K
increased by6.65%
Maintainers
1
Weekly downloads
 
Created
Source

eslint_d

SemVer License

Makes eslint the fastest linter on the planet.

"But eslint is pretty fast already, right?"

Yes, it's actually super fast. But the node.js startup time and loading all the required modules slows down linting times for a single file to ~700 milliseconds. eslint_d reduces this overhead by running a server in the background. It brings the linting time down to ~160 milliseconds. If you want to lint from within your editor whenever you save a file, eslint_d is for you.

Install

This will install the eslint_d command globally:

$ npm install -g eslint_d

Usage

To start the server and lint a file, just run:

$ eslint_d lint file.js

On the initial call, the eslint_d server is launched and then the given file is linted. Subsequent invokations are super fast.

Commands

Controll the server like this:

$ eslint_d <command>

Available commands:

  • start: start the server
  • stop: stop the server
  • status: print out whether the server is currently running
  • restart: restart the server
  • lint <file1> <file2> ...: lint one or more files. The eslint engine will be created in the current directory. If the server is not yet running, it is started.

eslint_d will select a free port automatically and store the port number is ~/.eslint_d_port.

Editor integration

If you're a vim user and have the syntastic plugin installed, download plugins/eslint_d.vim and save it in ~/.vim/bundle/syntastic/syntax_checkers/javascript/.

If you're using eslint_d in any other editor, please tell me!

Moar speed

If you're really into performance and want the lowest possible latency, talk to the eslint_d server with netcat. This will also eliminate the node.js startup time.

$ echo '. file.js' | nc localhost `cat ~/.eslint_d_port`

This runs eslint in under 50ms!

Compatibility

  • 1.0.0: eslint 1.4+

License

MIT

Keywords

FAQs

Package last updated on 18 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc