Code Monkey home page Code Monkey logo

nvinuse's Introduction

Node Version Scanner

Node Version Scanner scans a directory and its subdirectories for package.json and .nvmrc files to identify Node.js versions used in various projects.

Features

  • Scans for Node.js versions specified in package.json and .nvmrc files
  • Ignores node_modules directories to avoid scanning dependencies
  • Sorts versions in ascending order
  • Option to describe the container diretory for each Node version detected, in "- : " format.

Requirements

  • Python 3.6 or higher

Usage

Run the script from the command line with the following syntax:

python script_name.py -d <directory_path> [--description]

Arguments

  • -d, --directory: (Required) The path to the directory you want to scan.
  • --description: (Optional) Include this flag to show detailed output with file paths.

Basic Output

lts/erbium
>=0.12.0
v8
>=10
v10.15.3
v12

Output with Description

- lts/erbium: /path/to/parent/directory
- >=0.12.0: /path/to/parent/directory
- v8: /path/to/parent/directory
- >=10: /path/to/parent/directory
- v10.15.3: /path/to/parent/directory
- v12: /path/to/parent/directory

nvinuse's People

Contributors

garukun avatar

Watchers

 avatar

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.