Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gv_rotating_array

gvsr14ISC1.0.4

Adding the right folders

rotate array, rotating array, array rotation, array manipulation, clockwise rotation, anti-clockwise rotation, javascript array, node.js array tools, array utilities, rotate array left, rotate array right, data structures, array operations, array rotation algorithm, array processing, coding utilities, npm array tool, interactive array tool, array logic, array transformation, array shift, array rotate npm, gvsr array module, npm rotating array, node rotating array, programming tools, menu-driven array rotation

readme

gv_rotating_array 📜

A Node.js module for rotating arrays clockwise or anti-clockwise!

🚀 Features

  • Rotate arrays in both clockwise and anti-clockwise directions.
  • Menu-driven program for an interactive user experience.
  • Simple to use and flexible for array manipulation needs.

🛠️ Installation

Before running the code, you need to install the package.
Make sure you are in your project directory

npm install gv_rotating_array  

▶️ How to Run the Code

  1. Ensure you have installed the package using npm i gv_rotating_array.
  2. Run the following command(from project directory) to execute the module:
    node ./node_modules/gv_rotating_array/index.js  

📂 Accessing the Logic

The logic for the rotating array is located in the following file:

node_modules/gv557_exp3

You can explore and understand the implementation details there.

📋 Example Usage

  1. Enter the size of the array when prompted.
  2. Input the elements of the array.
  3. Choose:
    • 1 for Anti-Clockwise rotation.
    • 2 for Clockwise rotation.
    • 3 to Exit.

The rotated array will be displayed on the console.

🧑‍💻 Contributions

Feel free to contribute by improving the module or fixing issues.

Happy Coding! 🎉