New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

emlx2json

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emlx2json - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

test.emlx

10

lib/emlx2json.js

@@ -11,2 +11,3 @@ /*

var _ = require("underscore");
var mimelib = require("mimelib");

@@ -89,2 +90,8 @@ var emlx2json = module.exports = {

function parseSubject(subj) {
return _.map(subj.split(/\n/g), function(line) {
return mimelib.decodeMimeWord(line)
}).join("")
}
function stripUnixNewLines(content) {

@@ -106,2 +113,3 @@ return content.replace(/\r\n/g, "\n");

return _.map(keys, function (key, i) {
var currentKey = key.replace(/\-/g, "\\-");

@@ -123,3 +131,3 @@ var nextKey = keys[i + 1]

end: end,
value: value
value: (key.toLowerCase() == "subject") ? parseSubject(value) : value
}

@@ -126,0 +134,0 @@ });

4

package.json
{
"name": "emlx2json",
"version": "0.0.4",
"version": "0.0.5",
"description": "JSON parser for Apple Mail (Mail.app) messages (.emlx)",

@@ -18,3 +18,3 @@ "dependencies": {

"main": "lib/emlx2json.js",
"_id": "emlx2json@0.0.4"
"_id": "emlx2json@0.0.5"
}
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