malta-notify

    1.0.5 • Public • Published

    npm version npm downloads npm downloads

    This plugin can be used on all files

    Options :
    - configFile : path for a json file that is expected to contain all information needed to send the email, this path is relative to the template folder:

    {
        "smtp" : "smtp.xxxxxxxx.com",
        "account" : "xxxxxxxxxxxxxxxxx@gmail.com",
        "pwd": "xxxxxxxxxxxxxx",
        "from" : "'xxxxxxx yyyyyyy 👥'' <xxxxxxxxxxx@gmail.com>",
        "port": 465,
        "subject" : "%fname% compiled",
        "content" : {
            "txt" : "The new content is :\n\n\n%content%",
            "html" : "<b>The new  content is:</b><br/><br/><br/><textarea style=\"width:100%;height:500px;background-color:#444;color:#0f0;font-size:2em\">%content%</textarea>"
        }  
    }

    then the destination address: - to : a valid email address

    Sample usage:

    malta app/source/index.js public/docs -plugins=malta-notify[configFile:\"mailer/params.json\",to:\"fedeghe@gmail.com\"]
    

    or in the .json file :

    "app/source/index.js" : "public/docs -plugins=malta-notify[configFile:\"mailer/params.json\",to:\"fedeghe@gmail.com\"]"
    

    or in a script :

    var Malta = require('malta');
    Malta.get().check([
        'app/source/index.js',
        'public/docs',
        '-plugins=malta-notify[configFile:\"mailer/params.json\",to:\"fedeghe@gmail.com\"]',
        '-options=showPath:false,watchInterval:500,verbose:0'
        ]).start(function (o) {
            var s = this;
            console.log('name : ' + o.name)
            console.log("content : \n" + o.content);
            'plugin' in o && console.log("plugin : " + o.plugin);
            console.log('=========');
        });

    Install

    npm i malta-notify

    DownloadsWeekly Downloads

    0

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    5.22 kB

    Total Files

    4

    Last publish

    Collaborators

    • fedeghe