npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

amir-text-cli

v1.12.0

Published

![npm](https://img.shields.io/npm/v/amir-text-cli) ![npm](https://img.shields.io/npm/dt/amir-text-cli)

Downloads

19

Readme

amir-text-cli

npm npm

Table of Contents

  1. Introduction
  2. Features
  3. Installation
  4. Usage
  5. Example
  6. Commands
  7. API
  8. Development
  9. Contributing
  10. Support

A command-line interface (CLI) for managing files and directories in a specified path with a visual representation of the directory tree. Built with Vue.js, TypeScript, TailwindCSS, Node.js, Vite, and WebSocket. This tool allows you to create, rename, and delete files and directories efficiently.

Features

  • Directory Tree Visualization: Displays a hierarchical view of the files and directories in the specified path.
  • File Management: Create, rename, and delete files and directories via WebSocket communication.
  • Multi-platform Support: Works seamlessly across different operating systems.

Installation

To install amir-text-cli, run the following command:

npm install -g amir-text-cli

Usage

To use amir-text-cli, you need to specify a directory path. Run the following command:

npx amir-text-cli <directory_path>

Example

npx amir-text-cli /path/to/your/directory

This command will start the WebSocket server and visualize the directory tree of the specified path.

Commands

Once the server is running, you can perform the following actions:

1. Create a file/directory:

  • Send a message with CREATE action.
  • Include directory (path) and item (object with name and optional children) in your message.

2.Rename a file/directory:

  • Send a message with RENAME action.
  • Include directory (path) and item (object with oldName and newName) in your message.

3. Delete a file/directory:

  • Send a message with DELETE action.
  • Include directory (path) in your message.

API

  • WebSocket Server: Listens for client connections on port 8080.
  • Directory Tree Updates: Automatically updates and sends the current state of the directory tree to the client on changes.

Development

Prerequisites

Ensure that you have Node.js and npm installed on your machine.

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.

Support

For support, please open an issue in the GitHub repository or contact the maintainer.