New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@amitkys/dirmanager

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amitkys/dirmanager

## Description

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Sabnam CLI

Description

Sabnam CLI is a simple command-line interface tool for managing directories and files. It allows users to list directory contents, create new directories, and create empty files.

Installation

Ensure you have Node.js installed on your system. Then, install the dependencies and link the CLI tool globally:

npm install
npm link

Usage

Run the CLI tool with the following commands:

List Directory Contents

sabnam -l [directory_path]

If no directory path is provided, it lists the contents of the current directory.

Create a Directory

sabnam -m <directory_name>

Creates a new directory with the specified name.

Create a File

sabnam -t <file_name>

Creates a new empty file with the specified name.

Examples

Listing Directory Contents

sabnam -l /home/user/documents

Creating a Directory

sabnam -m my_new_directory

Creating a File

sabnam -t myfile.txt

Error Handling

  • If the specified directory does not exist when listing contents, an error message is displayed.
  • If a directory already exists when attempting to create it, nothing happens.
  • If a file already exists when attempting to create it, it remains unchanged.

License

This project is licensed under the MIT License.

Keywords

cli

FAQs

Package last updated on 29 Mar 2025

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