developer-utility
v1.0.2
Published
This package is used to convert the csv to json and add,remove data from json file
Downloads
105
Maintainers
Readme
Your documentation is clear and informative, but it could benefit from a few tweaks to improve readability and consistency. Here are some suggestions to enhance your format:
Index
- Introduction: This library helps you convert CSV files to JSON files.
- Target Audience: This package is designed for developers and those familiar with the command line interface and terminal.
- Reporting Issues: If you encounter bugs or have ideas, email [email protected]. You can also implement features and create pull requests.
Prerequisites
- Software Required: Install Node.js (v20.12.2). Click here to install Node.js.
Installation Guide
Install the Package: After installing Node.js, install the package using the following command:
npm install developer-utility
Locate the Package: After installation, you can find the
dev-utils
package in thenode_modules
directory of your global Node.js packages.
How to Use the Package
Run the Command:
json
Successful Installation: If you see the following window, your installation was successful:
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: Ensure the destination file has the proper
.json
extension and starts as an empty array[ ]
.After Conversion: Once you enter the details, you'll see a success message:
The parsed data will be stored in your newly created JSON file:
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:
Source JSON File:
Property to Add File:
Run the Command:
json
Success Message:
Updated JSON File:
Add UUID to JSON File
Source File:
.json
(Your JSON file with data)Important: Properties must be specified in a
.json
file.Steps:
Source JSON File:
Run the Command:
json
Success Message:
Updated JSON File:
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:
Source JSON File:
Run the Command:
json
Success Message:
Updated JSON File: