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
Written in
Powered by
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:
- refactor to improve DRY coding principles
Usage
npm i csvtransformers
import {csvtransformer} from 'csvtransformers'
or
const {csvTransformer} = require('csvtransformers')
Install python (python.org)
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
Closing
Special thanks to every mention of transforming CSV files (in js) across the web. Contributions always welcome!