npm.io
1.2.0 • Published 1 year agoCLI

developer-utility

Licence
ISC
Version
1.2.0
Deps
7
Size
25 kB
Vulns
2
Weekly
0

Developer Utility

A cross-platform CLI for working with JSON and CSV files.

Convert CSV JSON, add/remove properties, and more — all from the command line.

Index

Introduction

This tool helps developers manipulate JSON and CSV data directly from the terminal.

Target Audience

Developers or anyone comfortable with the command line.

Reporting Issues

Found a bug or want to propose a feature? Open an issue or email sakthiv9819@gmail.com.

Prerequisites
Installation Guide
  1. Install the Package: After installing Node.js, install the package using the following command:

    npm install -g developer-utility
  2. Locate the Package: After installation, you can find the dev-utils package in the node_modules directory of your global Node.js packages.

How to Use the Package
  1. Run the Command:

    dev
  2. Successful Installation: If you see the following window, your installation was successful:

    ██████╗ ███████╗██╗   ██╗     ██████╗██╗     ██╗
    ██╔══██╗██╔════╝██║   ██║    ██╔════╝██║     ██║
    ██║  ██║█████╗  ██║   ██║    ██║     ██║     ██║
    ██║  ██║██╔══╝  ╚██╗ ██╔╝    ██║     ██║     ██║
    ██████╔╝███████╗ ╚████╔╝     ╚██████╗███████╗██║
    ╚═════╝ ╚══════╝  ╚═══╝       ╚═════╝╚══════╝╚═╝
                                                    
    Developer-utility CLI
    
    ? Select a utility: (Use arrow keys)
    ❯  JSON Manipulation 
       QR Code Generation 
       UUID Generation 
       Directory Tree 
       Password Utility (Placeholder) 
       Exit
How to Use Each Service
Convert CSV to JSON
  • Source File: .csv (absolute path to the CSV file to convert)

  • Destination File: .json (path to your empty JSON file)

    Important: You can have a .json file with name else dev-cli will create directory and file for given path

  • After Conversion: Once you enter the details, you'll see a success message:

    alt text

    The parsed data will be stored in your newly created JSON file:

    alt text

Add Property to JSON File
  • Source File: .json (Your existing JSON file with data)

  • Property to Add File: .json (Your JSON file with properties to add)

    Important: Properties must be specified in a .json file.

  • Steps:

    1. Source JSON File: alt text

    2. Property to Add File: alt text

    3. Run the Command:

      dev
    4. Success Message: alt text

    5. Updated JSON File: alt text

Add UUID to JSON File
  • Source File: .json (Your JSON file with data)

    Important: Properties must be specified in a .json file.

  • Steps:

    1. Source JSON File: alt text

    2. Run the Command:

      dev
    3. Success Message: alt text

    4. Updated JSON File: alt text

Remove Property from JSON File
  • Source File: .json (Your JSON file with properties to remove)

    Important: Properties must be specified in a .json file.

  • Steps:

    1. Source JSON File: alt text

    2. Run the Command:

      dev
    3. Success Message: alt text

    4. Updated JSON File: alt text


Keywords