New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

interview-questions

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interview-questions

A CLI tool for generating interview questions by difficulty level and quantity, with support for multiple output formats including text, JSON, and arrays.

1.0.3
Source
npm
Version published
Weekly downloads
2.4K
79.29%
Maintainers
0
Weekly downloads
 
Created
Source

alt text

Interview Questions CLI

Welcome to the Interview Questions CLI, a powerful tool designed for users learning JavaScript and practicing coding every day. This repository provides a collection of interview questions categorized by difficulty level, allowing you to learn and improve your skills anytime, directly from your terminal.

Features

  • Daily Practice: Access a curated set of JavaScript interview questions to sharpen your coding skills.
  • Difficulty Levels: Choose questions by difficulty—junior, middle, or senior—to match your skill level.
  • Flexible Output: Get questions in multiple formats:
    • text for direct display in the terminal.
    • array or json for use in your projects or further study.
  • Randomized Selection: Practice with random questions to simulate real-world scenarios.

Installation

Ensure you have Node.js installed on your machine.

  • Clone the repository:
    git clone https://github.com/fix2015/interview-questions.git
    
  • Navigate to the project directory:
    cd interview-questions-cli
    
  • Install dependencies:
    npm install
    
  • Make the CLI globally accessible (optional):
    npm link
    

Usage

Run the CLI using the following command:

node cli.js [options]

Options

OptionDescriptionExample
--filterFilter questions by type (all, top). Default is all.--filter top
--amountNumber of questions to retrieve (for top filter).--amount 5
--levelFilter by difficulty level (junior, middle, senior).--level junior
--formatOutput format (text, array, json). Default is text.--format json
--verboseEnable verbose logging for debugging.--verbose

Examples

  • Retrieve all questions:

    node cli.js --filter all
    
  • Get the top 5 junior-level questions in JSON format:

    node cli.js --filter top --amount 5 --level junior --format json
    
  • Use verbose mode to debug:

    node cli.js --verbose
    

Who is this for?

This repository is perfect for:

  • JavaScript learners: Enhance your knowledge with targeted practice.
  • Job seekers: Prepare for interviews by tackling real-world coding problems.
  • Developers: Quickly access a JSON or array of questions for use in projects or mock tests.

Connect with Me:

License

MIT License
Copyright (c) 2024 Vitalii Semianchuk

License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

interview

FAQs

Package last updated on 14 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts