UNPKG

analytics-npmjs

Version:

NPMJS Analytics is a Node.js tool that analyzes download statistics for npm packages maintained by a specified user.

109 lines (59 loc) 4.66 kB
# NPMJS Analytics (Original Vietnamese below) _NPMJS Analytics is a Node.js tool that analyzes download statistics for npm packages maintained by a specified user. Developed by @nhavantuonglai, it fetches package data from the npm registry and provides a concise list of download counts over the past 12 months. Easy to use, it offers a straightforward interface with options to explore related resources._ ## Installation Guide To install, run the following command in your terminal: ``` npm install npmjs-analytics ``` Or install globally to use it as a CLI tool: ``` npm install -g npmjs-analytics ``` ## Purpose – Provides a simple way to retrieve and display download statistics for all npm packages owned by a given maintainer. – Integrates seamlessly with external resources via website and Instagram links for further exploration. ## Workflow – Start the tool: Launch the program to see a welcome message introducing the npm analytics tool. – Enter a username: Input an npm username to analyze (e.g., `nhavantuonglai`). No default value; users must provide input to proceed. – View results: The tool fetches the maintainer's packages from the npm registry and lists each package with its download count over the past 12 months. If a package doesn’t exist or an error occurs, it assigns a download count of 0 with an appropriate message. The total download count is displayed at the end. – Choose next steps: After the results, select an option: `0`: Restart the tool to analyze another username. `1`: Visit [nhavan.vn](https://nhavan.vn). `2`: Visit [Instagram nhavantuonglai](https://instagram.com/nhavantuonglai). Any other input: Exit the tool. – Repeat or exit: The process loops if you choose to restart, ensuring a smooth analytics experience. ## Contact & Support – Email: info@nhavan.vn. – Website: [nhavan.vn](https://nhavan.vn) If you have any questions or suggestions, feel free to contact us for the fastest support. Don’t forget to star this repository if you find it useful. # Phân tích NPMJS (NPMJS Analytics) _Công cụ NPMJS Analytics là một tiện ích Node.js phân tích thống kê lượt tải các gói npm do một người dùng chỉ định quản lý. Được phát triển bởi @nhavantuonglai, nó lấy dữ liệu gói từ registry npm và cung cấp danh sách ngắn gọn về số lượt tải trong 12 tháng qua. Dễ sử dụng, công cụ mang đến giao diện đơn giản cùng các tùy chọn truy cập tài nguyên liên quan._ ## Hướng dẫn cài đặt Để cài đặt, chạy lệnh sau trong terminal: ``` npm install npmjs-analytics ``` Hoặc cài đặt toàn cục để sử dụng như công cụ CLI: ``` npm install -g npmjs-analytics ``` ## Công dụng – Cung cấp cách đơn giản để lấy và hiển thị thống kê lượt tải cho tất cả gói npm của một maintainer. – Tích hợp mượt mà với các tài nguyên bên ngoài qua liên kết website và Instagram. ## Flow thao tác – Khởi động công cụ: Chạy chương trình để xem thông báo chào mừng giới thiệu công cụ phân tích npm. – Nhập tên người dùng: Nhập tên người dùng npm để phân tích (ví dụ: `nhavantuonglai`). Không có giá trị mặc định; người dùng phải nhập để tiếp tục. – Xem kết quả: Công cụ lấy danh sách gói của maintainer từ registry npm và liệt kê từng gói với số lượt tải trong 12 tháng qua. Nếu gói không tồn tại hoặc có lỗi, nó gán số lượt tải là 0 kèm thông báo phù hợp. Tổng số lượt tải được hiển thị ở cuối. – Chọn bước tiếp theo: Sau khi xem kết quả, chọn một tùy chọn: `0`: Khởi động lại công cụ để phân tích một username khác. `1`: Truy cập [nhavan.vn](https://nhavan.vn). `2`: Truy cập [Instagram nhavantuonglai](https://instagram.com/nhavantuonglai). Bất kỳ đầu vào nào khác: Thoát công cụ. – Lặp lại hoặc thoát: Quá trình lặp lại nếu bạn chọn khởi động lại, đảm bảo trải nghiệm phân tích liền mạch. ## Liên hệ & Hỗ trợ – Email: info@nhavan.vn. – Website: [nhavan.vn](https://nhavan.vn) Nếu bạn có bất kỳ câu hỏi hay đề xuất nào, đừng ngần ngại liên hệ với chúng tôi để được hỗ trợ nhanh nhất. Đừng quên star repository này nếu bạn thấy nó hữu ích.