This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates an import file for WooCommerce Memberships from an s2Member export | |
// https://docs.woocommerce.com/document/woocommerce-memberships-import-and-export/ | |
// Intall node.js then run the following commands in a new directory containing this file | |
// npm init | |
// npm install --save csv-parser csv-writer moment | |
// the following line runs the file. Be sure to change the constants below first | |
// node --inspect s2MemberToWooCommerceMemberships.js | |
const csv = require('csv-parser') | |
const fs = require('fs') |