https://github.com/dkunin/secret-santa-module
Node module to scrabble list of emails and send messages via Mail gun
https://github.com/dkunin/secret-santa-module
Last synced: 4 months ago
JSON representation
Node module to scrabble list of emails and send messages via Mail gun
- Host: GitHub
- URL: https://github.com/dkunin/secret-santa-module
- Owner: DKunin
- Created: 2015-12-10T13:00:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-10T19:38:20.000Z (over 10 years ago)
- Last Synced: 2024-11-09T13:57:17.159Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Secret Santa Module
## Installation
npm i secret-santa-module -S
## Usage
```javascript
var fs = require('fs');
var path = require('path');
var list = fs.readFileSync(path.resolve('./test-list.csv')).toString();
var santaModule = require('secret-santa-module');
// Your MailGun Credentials
var auth = {
api_key: ,
domain:
};
santaModule(list, {
auth: auth,
debug: false,
template: '
Custom template!
You should prepeare for {%=o.to%}
'
});
```
## List Example
// NOTE : The first line is mandatory
Name,e-mail
Barry Allen,flash@dccomics.com
Wally West ,kidflash@dccomics.com
## Sent message
You should prepare a present for:
Wally West (kidflash@dccomics.com)
## Changelog
### 3.2.0
- Breaking changes: replaced jade templater for simple string templater
- Breaking changes: removed jade
- Breaking changes: removed ramda
### 3.0.0
- Breaking changes: you should provide csv string instead of a filename
- You can provide custom template option jade string
## TODO
- ~~Custom templates~~
- Templates without jade or Automatic conversation from HTML to jade