UNPKG

cli-check-node

Version:

Check the installed Node.js version and exit as per the required Node.js version.

216 lines (118 loc) โ€ข 11.4 kB
# CHANGELOG All notable changes in this project's [released versions](../../releases) are documented in this file. > [**Support my work**][sponsor]: If you or your company use any of my projects or like what Iโ€™m doing then consider [backing me][sponsor]. I'm in this for the long run. An open-source developer advocate. [![Sponsor Awais](https://img.shields.io/badge/-Sponsor%20Awais%20%E2%86%92-gray.svg?colorA=6A788D&colorB=6A788D&style=flat)](https://github.com/AhmadAwais/sponsor/?utm_source=FOSS) [![Node.js CLI Automation](https://img.shields.io/badge/-NodeCLI.com%20%E2%86%92-gray.svg?colorA=6A788D&colorB=6A788D&style=flat)](https://NodeCLI.com/?utm_source=FOSS) [![VSCode](https://img.shields.io/badge/-VSCode.pro%20%E2%86%92-gray.svg?colorA=6A788D&colorB=6A788D&style=flat)](https://VSCode.pro/?utm_source=GitHubFOSS) [![Follow @MrAhmadAwais on Twitter](https://img.shields.io/twitter/follow/mrahmadawais.svg?style=social&label=Follow%20@MrAhmadAwais)](https://twitter.com/mrahmadawais/) <br> I have released a video course to help you build <a href="https://NodeCLI.com/?utm_source=FOSS" target="_blank">Node.js CLIs for Automation</a> โ†’</p> <a href="https://NodeCLI.com/?utm_source=FOSS" target="_blank"><img src="https://raw.githubusercontent.com/ahmadawais/stuff/master/nodecli/featured.jpg" /><br>NodeCLI.com</a> โ†’ <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) **CHANGELOG KEY**: `๐Ÿ“ฆ NEW`, `๐Ÿ‘Œ IMPROVE`, `๐Ÿ› FIX`, `๐Ÿ“– DOC`, `๐Ÿš€ RELEASE`, `๐Ÿค– TEST`, and `โ€ผ๏ธ BREAKING`. <small> > _I use [Emoji-log](https://github.com/ahmadawais/Emoji-Log), you should try it and simplify your git commits._ </small> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: [1.3.4](https://github.com/ahmadawais/cli-check-node/compare/1.3.3...1.3.4) ![๐Ÿ‘Œ IMPROVE:](https://img.shields.io/badge/-IMPROVEMENT-gray.svg?colorB=39AA54) > ๐Ÿ‘Œ Remove Scarf [`ff97863`](https://github.com/ahmadawais/cli-check-node/commit/ff9786300ed422b00ebd13174cff024802e98a18) <br> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: [1.3.3](https://github.com/ahmadawais/cli-check-node/compare/1.3.2...1.3.3) ![๐Ÿ“– DOC:](https://img.shields.io/badge/-DOCS-gray.svg?colorB=978CD4) > ๐Ÿ“– Changelog [`046d18f`](https://github.com/ahmadawais/cli-check-node/commit/046d18f214385f1aea351852d64cdbad93ae7342) <br> > ๐Ÿ“– Badge link [`c24c347`](https://github.com/ahmadawais/cli-check-node/commit/c24c34760c9e0b0f21701121913e398d6cf30f09) <br> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: [1.3.2](https://github.com/ahmadawais/cli-check-node/compare/1.3.1...1.3.2) ![๐Ÿ‘Œ IMPROVE:](https://img.shields.io/badge/-IMPROVEMENT-gray.svg?colorB=39AA54) > ๐Ÿ‘Œ Image [`44540bb`](https://github.com/ahmadawais/cli-check-node/commit/44540bb129d227e1cd7cf5d7f3004e66518cd98a) <br> ![๐Ÿ“– DOC:](https://img.shields.io/badge/-DOCS-gray.svg?colorB=978CD4) > ๐Ÿ“– Changelog [`a9cce51`](https://github.com/ahmadawais/cli-check-node/commit/a9cce5171b39fef0f1c6ab8852dd6f098ce5a61c) <br> > ๐Ÿ“– Badge color [`256df06`](https://github.com/ahmadawais/cli-check-node/commit/256df06c9b78bf369f5a0c8ca5d2373673dd8e5e) <br> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: [1.3.1](https://github.com/ahmadawais/cli-check-node/compare/1.3.0...1.3.1) ![๐Ÿ“ฆ NEW:](https://img.shields.io/badge/-NEW-gray.svg?colorB=3778FF) > ๐Ÿ“ฆ Analyze [`f0ba9af`](https://github.com/ahmadawais/cli-check-node/commit/f0ba9af1350416a8219c8d135c72f3475ec3a622) <br> ![๐Ÿ“– DOC:](https://img.shields.io/badge/-DOCS-gray.svg?colorB=978CD4) > ๐Ÿ“– Changelog [`efa22be`](https://github.com/ahmadawais/cli-check-node/commit/efa22be54b6e09cf75233f1c67638fd5cceebe81) <br> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: [1.3.0](https://github.com/ahmadawais/cli-check-node/compare/1.2.0...1.3.0) ![๐Ÿ“ฆ NEW:](https://img.shields.io/badge/-NEW-gray.svg?colorB=3778FF) > ๐Ÿ“ฆ tesnt [`0a954f4`](https://github.com/ahmadawais/cli-check-node/commit/0a954f454060648755a8d0a65e8ff5a09ef42756) <br> ![๐Ÿ“– DOC:](https://img.shields.io/badge/-DOCS-gray.svg?colorB=978CD4) > ๐Ÿ“– Changelog [`6e10d17`](https://github.com/ahmadawais/cli-check-node/commit/6e10d17c9eab95291af0473caae7b8d166e1c9e6) <br> ![โœ… TEST:](https://img.shields.io/badge/-TESTS-gray.svg?colorB=2BBA00) > ๐Ÿค– Node version [`00cf089`](https://github.com/ahmadawais/cli-check-node/commit/00cf089abc37cc5e86eb3e0d1943157972ed4962) <br> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: [1.2.0](https://github.com/ahmadawais/cli-check-node/compare/1.1.0...1.2.0) ![๐Ÿ› FIX:](https://img.shields.io/badge/-FIX-gray.svg?colorB=ff6347) > ๐Ÿ› DevDeps [`6a9a823`](https://github.com/ahmadawais/cli-check-node/commit/6a9a823dfc69f2f42e0b6a85e7c4961e2dc54d70) <br> ![๐Ÿ“– DOC:](https://img.shields.io/badge/-DOCS-gray.svg?colorB=978CD4) > ๐Ÿ“– Changelog [`83b8bf6`](https://github.com/ahmadawais/cli-check-node/commit/83b8bf6a8a062c3ba2d686f7ab892a939b3904dd) <br> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: [1.1.0](https://github.com/ahmadawais/cli-check-node/compare/1.0.0...1.1.0) ![๐Ÿ‘Œ IMPROVE:](https://img.shields.io/badge/-IMPROVEMENT-gray.svg?colorB=39AA54) > ๐Ÿ‘Œ Lingo [`0ee9935`](https://github.com/ahmadawais/cli-check-node/commit/0ee9935b7c1178c67eb9dd5c86e606c5b74ce195) <br> ![๐Ÿ“– DOC:](https://img.shields.io/badge/-DOCS-gray.svg?colorB=978CD4) > ๐Ÿ“– Changelog [`71aacd7`](https://github.com/ahmadawais/cli-check-node/commit/71aacd7c7a59bcb7e9f96546ce5d481910b47171) <br> <br> [![hr](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/hr.png)](/) <br> ### RELEASE: 1.0.0 ![๐Ÿ“ฆ NEW:](https://img.shields.io/badge/-NEW-gray.svg?colorB=3778FF) > ๐Ÿ“ฆ First commit [`671a73c`](https://github.com/ahmadawais/cli-check-node/commit/671a73c674c30730a306263e61dde395924e3a02) <br> > ๐Ÿ“ฆ First version [`0d8b735`](https://github.com/ahmadawais/cli-check-node/commit/0d8b735df315c6fee4108c62265dc6b58644285e) <br> > ๐Ÿ“ฆ First version [`f9e9642`](https://github.com/ahmadawais/cli-check-node/commit/f9e964217a3f03e75ea9e0633524279593aa67c9) <br> ![๐Ÿ“– DOC:](https://img.shields.io/badge/-DOCS-gray.svg?colorB=978CD4) > ๐Ÿ“– Changelog [`1acdabd`](https://github.com/ahmadawais/cli-check-node/commit/1acdabd883a5bd57d99f36459122f579071f566f) <br> <br> <br> [![๐Ÿ“ƒ](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/license.png)](/) ## License & Conduct - MIT ยฉ [Ahmad Awais](https://twitter.com/MrAhmadAwais/) - [Code of Conduct](code-of-conduct.md) <br> [![๐Ÿ™Œ](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/connect.png)](/) ## Connect <div align="left"> <p><a href="https://github.com/ahmadawais"><img alt="GitHub @AhmadAwais" align="center" src="https://img.shields.io/badge/GITHUB-gray.svg?colorB=6cc644&style=flat" /></a>&nbsp;<small><strong>(follow)</strong> TO STAY UP TO DATE ON FREE & OPEN SOURCE SOFTWARE</small></p> <p><a href="https://twitter.com/MrAhmadAwais/"><img alt="Twitter @MrAhmadAwais" align="center" src="https://img.shields.io/badge/TWITTER-gray.svg?colorB=1da1f2&style=flat" /></a>&nbsp;<small><strong>(follow)</strong> TO GET ONE DEV MINUTE DAILY HOT TIPS & TROLLS</small></p> <p><a href="https://www.youtube.com/AhmadAwais"><img alt="YouTube AhmadAwais" align="center" src="https://img.shields.io/badge/YOUTUBE-gray.svg?colorB=ff0000&style=flat" /></a>&nbsp;<small><strong>(subscribe)</strong> TO TECH TALKS & ONE DEV MINUTE VIDEOS</small></p> <p><a href="https://AhmadAwais.com/"><img alt="Blog: AhmadAwais.com" align="center" src="https://img.shields.io/badge/MY%20BLOG-gray.svg?colorB=4D2AFF&style=flat" /></a>&nbsp;<small><strong>(read)</strong> MOSTLY LONG FORM TECHNICAL ARTICLES</small></p> <p><a href="https://www.linkedin.com/in/MrAhmadAwais/"><img alt="LinkedIn @MrAhmadAwais" align="center" src="https://img.shields.io/badge/LINKEDIN-gray.svg?colorB=0077b5&style=flat" /></a>&nbsp;<small><strong>(connect)</strong> WITH THE LINKEDIN PROFILE Y'ALL</small></p> </div> <br> [![๐Ÿ‘Œ](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/sponsor.png)](/) ## Sponsor Me ([Ahmad Awais](https://twitter.com/mrahmadawais/)) and my incredible wife ([Maedah Batool](https://twitter.com/MaedahBatool/)) are two engineers who fell in love with open source and then with each other. You can read more [about me here](https://ahmadawais.com/about). If you or your company use any of my projects or like what Iโ€™m doing then consider backing me. I'm in this for the long run. An open-source developer advocate. - ๐ŸŒŸ **$9.99/month (recommended)** โฏ [Two cups of Caffรจ latte (coffee) every month โ†’](https://pay.paddle.com/checkout/540217) - ๐Ÿš€ **$99.99 (one-time sponsor)** โฏ [Support an hour of open-source code โ†’](https://pay.paddle.com/checkout/515568) - ๐Ÿ”ฐ **$49.99 (one-time sponsor)** โฏ [Support an hour of maintenance โ†’](https://pay.paddle.com/checkout/527253) - โ˜•๏ธ **$9.99 (one-time sponsor)** โฏ [Lunch/coffee โ†’](https://pay.paddle.com/checkout/527254) <br> [![Node CLI](https://img.shields.io/badge/-NodeCLI.com%20%E2%86%92-gray.svg?colorB=3D873A)](https://nodecli.com/?utm_source=FOSS) Or you can back me by checking out my super fun video course. After building hundreds of developer automation tools used by millions of developers, I am sharing exactly how you can do it yourself with minimum effective effort. Learn to build Node.js & JavaScript based CLI (Command Line Interface) apps. Automate the grunt work, do more in less time, impress your manager, and help the community. โ†’ I'm sharing it all in this online video course. <a href="https://nodecli.com/?utm_source=FOSS" target="_blank">Node CLI Automation without wasting a 1,000 hours</a> โ†’</p> <a href="https://nodecli.com/?utm_source=FOSS" target="_blank"><img src="https://raw.githubusercontent.com/ahmadawais/stuff/master/nodecli/featured.jpg" /><br><strong>Node CLI</strong></a> <br> > [**Support my work**][sponsor]: If you or your company use any of my projects or like what Iโ€™m doing then consider [backing me][sponsor]. I'm in this for the long run. An open-source developer advocate. [![Sponsor Awais](https://img.shields.io/badge/-Sponsor%20Awais%20%E2%86%92-gray.svg?colorA=6A788D&colorB=6A788D&style=flat)](https://github.com/AhmadAwais/sponsor/?utm_source=FOSS) [![Node.js CLI Automation](https://img.shields.io/badge/-NodeCLI.com%20%E2%86%92-gray.svg?colorA=6A788D&colorB=6A788D&style=flat)](https://NodeCLI.com/?utm_source=FOSS) [![VSCode](https://img.shields.io/badge/-VSCode.pro%20%E2%86%92-gray.svg?colorA=6A788D&colorB=6A788D&style=flat)](https://VSCode.pro/?utm_source=GitHubFOSS) [![Follow @MrAhmadAwais on Twitter](https://img.shields.io/twitter/follow/mrahmadawais.svg?style=social&label=Follow%20@MrAhmadAwais)](https://twitter.com/mrahmadawais/) [![Sponsor](https://raw.githubusercontent.com/ahmadawais/stuff/master/sponsor/sponsor.jpg)][sponsor] [sponsor]: https://github.com/AhmadAwais/sponsor