Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaibhavbhatt2110/convert-to-json

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

@vaibhavbhatt2110/convert-to-json

This converts the XML and CSV data to JSON format.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Xml & Csv To JSON

It is a lightweight Node.js package that automatically detects and converts XML and CSV data to JSON format. It simplifies the process of handling different data formats within your Node.js applications.

Features

  1. Automatic detection and conversion of XML and CSV data to JSON
  2. Simple and intuitive API
  3. Lightweight and dependency-free

Installation You can install it via npm:

bash Copy code npm install @vaibhavbhatt2110/convert-to-json

Usage javascript

Copy code

const autoDataConverter = require('@vaibhavbhatt2110/convert-to-json');

// Example usage with XML data const xmlData =

John Doe 30 Jane Smith 25 `;

autoDataConverter(xmlData); // Outputs JSON representation of XML data

// Example usage with CSV data const csvData = Name,Age John Doe,30 Jane Smith,25;

autoDataConverter(csvData); // Outputs JSON representation of CSV data API autoDataConverter(data: string): void data: The input data to be converted. It can be either XML or CSV format.

FAQs

Package last updated on 06 Mar 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc