winston-mail
Advanced tools
Comparing version 0.5.0 to 1.0.0
1.0.0 / 2015-11-06 | ||
================== | ||
* No breaking changes, just locking in a stable semver | ||
* Testing for Node 4/5 | ||
* Support Winston >=0.5.0 <3.0.0 | ||
* Add timeout option for setting SMTP timeout | ||
0.5.0 / 2015-09-16 | ||
@@ -3,0 +11,0 @@ ================== |
@@ -50,3 +50,4 @@ /* | ||
ssl : options.ssl || options.secure, | ||
tls : options.tls | ||
tls : options.tls, | ||
timeout : options.timeout, | ||
}); | ||
@@ -53,0 +54,0 @@ }; |
{ | ||
"name": "winston-mail", | ||
"description": "A mail transport for winston", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"author": "Marc Harter <wavded@gmail.com>", | ||
@@ -30,3 +30,3 @@ "contributors": [ | ||
"peerDependencies": { | ||
"winston": ">=0.5.0 <2.0.0" | ||
"winston": ">=0.5.0 <3.0.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "main": "./lib/winston-mail", |
@@ -1,2 +0,2 @@ | ||
# winston-mail [![Build Status](https://travis-ci.org/wavded/winston-mail.svg?branch=master)](https://travis-ci.org/wavded/winston-mail) | ||
![NPM](https://img.shields.io/npm/v/winston-mail.svg) [![Build Status](https://travis-ci.org/wavded/winston-mail.svg?branch=master)](https://travis-ci.org/wavded/winston-mail) ![Downloads](https://img.shields.io/npm/dt/winston-mail.svg) | ||
@@ -7,26 +7,18 @@ A email transport for [winston][0]. | ||
### Installing npm (node package manager) | ||
``` sh | ||
$ curl http://npmjs.org/install.sh | sh | ||
$ npm install winston | ||
$ npm install winston-mail | ||
``` | ||
### Installing winston-mail | ||
``` sh | ||
$ npm install winston | ||
$ npm install winston-mail | ||
``` | ||
## Usage | ||
``` js | ||
var winston = require('winston'); | ||
var winston = require('winston'); | ||
// | ||
// Requiring `winston-mail` will expose | ||
// `winston.transports.Mail` | ||
// | ||
require('winston-mail').Mail; | ||
/* | ||
* Requiring `winston-mail` will expose | ||
* `winston.transports.Mail` | ||
*/ | ||
require('winston-mail').Mail; | ||
winston.add(winston.transports.Mail, options); | ||
winston.add(winston.transports.Mail, options); | ||
``` | ||
@@ -49,2 +41,3 @@ | ||
* __html:__ Boolean flag indicating whether to send mail body as html attach. | ||
* __timeout:__ Maximum number of milliseconds to wait for smtp responses (optional, defaults to emailjs defaults - 5000) | ||
@@ -60,3 +53,3 @@ ## Subject templating | ||
Copyright (c) 2015 Marc Harter | ||
Copyright (C) 2015 Marc Harter | ||
@@ -63,0 +56,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10521
123
1
60