0.1.1 • Published 11 months ago

sportlink-to-mailchimp-converter v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
11 months ago

sportlink-to-mailchimp-converter

A node module that converts Sportlink exports (.csv) into a csv you can import into Mailchimp.

Latest build status

Release pipeline

How to use

  1. Install the node module:
    npm install sportlink-to-mailchimp-converter
  2. Import the module in your code:
    // Javascript
    const SportlinkToMailchimpConverter = require('sportlink-to-mailchimp-converter')
    // Typescript
    import { SportlinkToMailchimpConverter } from 'sportlink-to-mailchimp-converter'
  3. And use it:

    const converter = new SportlinkToMailchimpConverter({
      nonAthleticsMembershipTypes: ['Gastlid', 'Recreanten', 'Overigen'],
      athleticsMembershipTypes: ['Atletiek']
    })
    
    console.log(converter.convertFileToOutput(file))

Examples

You can use example-input.csv to test.

Config

The configuration object looks like this:

{
    nonAthleticsMembershipTypes: string[]
    athleticsMembershipTypes: string[]
}

These values are used to recognize the "Lidsoorten vereniging" in your Sportlink export. For every string you provide in those arrays, the SportlinkToMailchimpConverter will scan the lidsoorten column in your csv file:

  • For every nonAthleticsMembershipTypes it finds, it will add a Mailchimp tag with that membershipType in the output.
  • For every athleticsMembershipTypes it finds, it will add a Mailchimp tag with "Atletiek " in the output.

Credits

Dependencies

  • Special thanks to the developers and maintainers of papaparse for providing an easy to use library that helps me parse and serialze CSV files.

Trademarks

All trademarks, inlcuding (but not limited to) Mailchimp and Sportlink, are the property of their respective owners.

0.1.0

11 months ago

0.1.1

11 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago