Skip to content

EllarDevelopment/csv-manipulation-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#csv-manipulation-tool A CSV-manipulation tool developed at Ellar Development for managing e-mail lists for our web-game Nordicmafia.

This tool is probably not compatible with most CSV-lists, and are primarly a tool for merging and subtracting emails from CSV's.

The tool works by taking a csv-document ("source") and another one ("input") and compare them to eachother (performing adjustments).

The source-document should only consist of one field, with header title "email".

Please read the code for better understanding.

##Installation npm install csv-manipulation-tool

##Options (flags)

Flag Short Description Default value
--source --s Source-CSV file null (required)
--input --i Input-CSV file null (required unless action is "validate", only source is required then)
--output --o Output-CSV file null (required)
--target --t Input-CSV target header title "email"
--action --a Action to perform. (join, subtract, validate) "join"
--avoid_lowercase None If present, prevents lowercase preparation Not present, only include to disable lowercase

##Example usage ###Merge two lists of emails

	csv-manipluaton-tool
		--s="csvfiles/source.csv"
		--i="csvfiles/input.csv"
		--o="csvfiles/output/output.csv"
		--a="join"

###Subtract a list from another (e.g. bounces, invalid)

	csv-manipluaton-tool
		--s="csvfiles/source.csv"
		--i="csvfiles/input.csv"
		--o="csvfiles/output/output.csv"
		--a="subtract"

###Clean a list of emails

	csv-manipluaton-tool
		--s="csvfiles/source.csv"
		--o="csvfiles/output/output.csv"
		--a="validate"

##Contribution Just create a fork and make adjustments. If you think your edits bring additional value, then please consider creating a pull request.

##License Licensed under Apache-2.0. See LICENSE

Copyright 2016 Ellar Development AS

About

Tool for manipulating CSV-files (merging, distinct, ++).

Resources

License

Stars

Watchers

Forks

Packages

No packages published