Coder Social home page Coder Social logo

verify-nvmrc's Introduction

verify-nvmrc

Script to help verify that the loaded node version matches what is set in the the closest .nvmrc file.

Usage

You can run this script through npx.

npx verify-nvmrc
# Node version is correct

Options

  • -e, --emoji

Supports emojis.

  • -v, --verbose

Logs out where it found the nvmrc file, if one is present. And logs out current node version.

  • -f, --fail

Process exits with code 1 if node version mismatch.

npx verify-nvmrc -e -v
# ℹ️ Current node version v14.15.4
# ℹ️ Found .nvmrc file with v14.15.4 at /Users/bitttttten/github.com/verify-nvmrc/.nvmrc
# Node version is correct 🎉

Caveats

Kind of ironically only supports node v12 and above since this script uses ES modules (for now, feel free to open a PR). To run with node v10, you should enable support for ES modules with the --experimental-modules flag: npx verify-nvmrc --experimental-modules. For node v8 and below, feel free to open a PR until a version of the script has been written that is v8 compatible.

verify-nvmrc's People

Contributors

bitttttten avatar nigelgilbert avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nigelgilbert

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.