Socket
Socket
Sign inDemoInstall

buildmail

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildmail - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc