Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "buildmail", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "buildmail is a low level rfc2822 message composer. Define your own mime tree, no magic included.", | ||
@@ -5,0 +5,0 @@ "author": "Andris Reinman <andris@kreata.ee>", |
@@ -359,3 +359,3 @@ # buildmail | ||
## use | ||
## transform | ||
@@ -365,3 +365,3 @@ If you want to modify the created stream, you can add transform streams that the output will be piped through. | ||
```javascript | ||
node.use(transformStream) | ||
node.transform(transformStream) | ||
``` | ||
@@ -384,3 +384,3 @@ | ||
message.setContent(fs.createReadStream('message.txt')); | ||
message.use(new PassThrough()); does't do anything wit the output, just passes it by | ||
message.transform(new PassThrough()); // add a stream that the output will be piped through | ||
message.createReadStream().pipe(fs.createWriteStream('message.eml')); | ||
@@ -387,0 +387,0 @@ ``` |
@@ -520,3 +520,3 @@ 'use strict'; | ||
*/ | ||
MimeNode.prototype.use = function(transform) { | ||
MimeNode.prototype.transform = function(transform) { | ||
this._transforms.push(transform); | ||
@@ -523,0 +523,0 @@ }; |
@@ -842,3 +842,3 @@ 'use strict'; | ||
mb.use(transform); | ||
mb.transform(transform); | ||
@@ -845,0 +845,0 @@ mb.build(function(err, msg) { |
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
70181