Great libraries for Node.js


In this article, I will introduce great tools to imporove React development efficiency.

🍣 Prettier

https://github.com/prettier/prettier

Prettier is a code formatter with support for:

  • JavaScript(ES2017), JSX, Flow, TypeScript, JSON
  • CSS, Less, SCSS
  • GraphQL
  • Markdown(GitHub Flavored Markdown)

It ensures that all output code confirms to a consistent style.

Some merits for using Prettier are as follows:

  • Building and enforcing a style guide
  • Easy to adopt
  • Clean up an existing codebase

🎂 terminus

https://github.com/godaddy/terminus

terminus adds graceful shutdown and Kubernetes readiness / liveness checks for Node.js HTTP application like Express.

Implementing to add terminus is so easy:

const http = require('http');
const app = express();
app.get('/', (req, res) => {
res.send('ok');
});
const server = http.createServer(app);
terminus(server, {
// opts
});
server.listen(3000);

🍮 Special Thanks

🖥 Recommended VPS Service

VULTR provides high performance cloud compute environment for you. Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour). In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!