Today I Learned - Rocky Kev

TIL Node LTS

POSTED ON:

TAGS:

Node LTS is the agreed upon version that every active project should try to stay within. Even-numbered releases–like Node.js 8, Node.js 10, Node.js 12, and so on–will become LTS.

If you're shipping an application or API to production, you should probably err on the side of caution and aim for the latest LTS. If you're developing a side project, you can go ahead and use the Current release line. If you're building tooling that's meant to be super helpful to a bunch of developers, you should probably try to support a range of versions.

What is LTS?

LTS: LTS is an acronym for Long-Term Support, and is applied to release lines (yes, that's plural) that will be supported and maintained by the Node.js project for an extended period of time.


Via nodesource.

reference


Related TILs

Tagged:

TIL what is npm Script

Despite their high usage they are not particularly well optimized and add about 400ms of overhead. In this article we were able to bring that down to ~22ms.

TIL fancy methods to transform Javascript Objects

You can use Object.entries(), Object.keys(), Object.fromEntries()...

TIL how to hide your JS code

ONE THING TO NOTE: Encrypting a script is stronger than obfuscation, both methods are still not adequate to protect secret content. Honestly, I don't think it's worth it on a production site, and instead just go with pure server-side if you want security. But it's fascinating.