Code Monkey home page Code Monkey logo

email-list-operations's Introduction

Email Operations

This utility helps you create the hashed email lists needed by various orgs/sites for email matching. As well as allowing you to compare your own organization's email list to a hashed list from another organzation.

Make sure the CSV of email addresses you're about to run through here has CRLF line endings and the first line is the column header "email".

Installation

npm install -g email-list-operations

Basic Usage

eops -o hashed_emails.csv email_list.csv

Flags

Compare
-c --compare <file>

Specify a list of hashed emails if you'd like to figure out which emails on your list already exist.

Example:

eops -o exist.csv -c hashed_list.csv email_list.csv
Case
-e --case <case>

Whether to upper or lower case the email before hashing (upper, lower, as-is). This defaults to "as-is".

Header
-h --header <header>

What the column that should be hashed is labelled within the CSV file. This defaults to "email".

Outpt
-o --output <output>

What filename the resultant list should be output as. If you don't specify this output filename, you'll just get your list printed to the screen.

Example:

eops -o exist.csv -c hashed_list.csv email_list.csv
Hash
-r --hash <hash>

Which hashing library to utilize. Right now, we only support sha1 and md5. We default to md5.

Salt
-s --salt <salt>

A salt string. Leave this empty to not use a salt.

Presets
-p --preset <preset>

This allows you to specify convenience presets for political services and publications (dailykos, google, demsdotcom, vindico, care2, upworthy) so that you don't have to set the hash and case options.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.