JSPM

csvtransformers

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q22637F
  • License MIT

a small javascript library for easy csv transformation

Package Exports

  • csvtransformers
  • csvtransformers/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (csvtransformers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

monthly downloads monthly git commits

Written in

TypeScript

Powered by

NodeJS python-shell Python Dask pandas PyPi

The easiest way to transform large csv files in js and ts.

BETA (1.0.0)

csvTransformer is a collection of functions designed to simplify large csv file manipulation in javascript and typescript. Functions are designed to be narrow in scope but extremely easy to use. This library compliments existing csv libraries that struggle with memory constraints of large data manipulation.

Need something custom? Check out .custom()! You can create your own python script using pandas, dask, or any other python library you install.

This library was born out of the need to modify specific column cells within large CSV file, using a very underpowered machine.

As this project is still in beta, it is highly recommended to make a copy of any file you plan to use with this library.

UPDATES

1.0.0 is live 🥳

TO-DO:

  1. refactor to improve DRY coding principles

Usage

npm i csvtransformers
import {csvtransformer} from 'csvtransformers'

or

const {csvTransformer} = require('csvtransformers')
  1. Install python (python.org)

  2. Install python libraries with python package installer (pip3 as of 03/23). Sample installation shown below.

  • numpy
  • pandas
  • dask
  • datetime
  • glob
pip3 install numpy
pip3 install pandas
pip3 install dask
pip3 install datetime
pip3 install glob

Note: Library built on nodeJS 16.17.1 and Python 3.11.2

.aggregatorBool()

Coming Soon

.aggregatorInt()

Coming Soon

.binaryToBoolean()

Coming Soon

.booleanToBinary()

Coming Soon

.custom()

Coming Soon

.generator()

Coming Soon

.isoToUnix()

Coming Soon

.merge()

Coming Soon

.toLower()

Coming Soon

.unixToISO()

Coming Soon

Resources

NodeJS

Python

Python-Shell

Pandas

Dask

PyPi

Closing

Special thanks to every mention of transforming CSV files (in js) across the web. Contributions always welcome!