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 🙏

© 2024 – Pkg Stats / Ryan Hefner

dataalchemy

v0.0.5

Published

Effortlessly Convert Base64-Encoded CSV or XLSX Files to JSON

Downloads

16

Readme

Data Alchemy: Transform Your Data with Ease

Welcome to Data Alchemy, a powerful npm package designed to streamline the process of converting base64-encoded CSV or XLSX file data into JSON format. With Data Alchemy, you can effortlessly transform your data for a wide range of applications, from data analysis to visualization.

Introduction

Data Alchemy is built to simplify the conversion of base64-encoded CSV or XLSX file data into JSON format. Whether you're working with CSV files from spreadsheets or XLSX files from Excel, Data Alchemy provides an intuitive solution to handle your data transformation needs.

Installation

To use Data Alchemy in your project, simply install it via npm:

npm i dataalchemy

Usage

Using Data Alchemy is straightforward. Import the package into your project and call the base64ToJSON function with the appropriate parameters.

Here's how you can use Data Alchemy to convert base64-encoded CSV or XLSX file data to JSON:

const { base64ToJSON } = require('dataalchemy');

// Example base64-encoded CSV data
const base64Data = "UEsDBBQACAgIA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u9uK/7nOAmO+YxMbx0vABp2bOAgwmnQSYlv";

// Convert CSV to JSON
const jsonData = base64ToJSON({ base64Data, type: "csv" });

Replace base64Data with your base64-encoded CSV data. Make sure to specify the correct type ("csv" or "xlsx") based on your data format.

That's it! You've successfully transformed your base64-encoded CSV or XLSX file data into JSON using Data Alchemy. Enjoy exploring your transformed data!