lite-email-parser 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Simple library to remove signature and replies and extract attachments and inline attachments from an email.
|
|
4
4
|
|
|
5
|
-
At [https://deerdesigner.com
|
|
5
|
+
At [Deer Designer](https://deerdesigner.com) we were having trouble to receive emails and filter out unnecessary content. After a careful analysis, I noticed machine learning didn't deal well with HTML mixed with attachments and embedded files. Our use case depends on enriched HTML and there weren't any good libs out there that solve this problem. So I decided to create this library.
|
|
6
6
|
|
|
7
7
|
If you stumble upon an email that is not parsed correctly, please create an issue and attach the raw .eml file.
|
|
8
8
|
|
|
9
|
-
Example of a parsed email: [sample](
|
|
9
|
+
Example of a parsed email: [sample](https://github.com/philipedc/lite-email-parser/blob/main/sample/sample.ts)
|
|
10
10
|
|
|
11
11
|
## Import
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lite-email-parser",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Parse email to get signature, replies, attachments and inline images",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "npx tsc && npx tsc --module commonjs --outDir dist/cjs --declaration && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
25
|
-
"start": "node ./dist/index.js",
|
|
26
25
|
"test": "npx -y tsx sample/sample.ts"
|
|
27
26
|
},
|
|
28
27
|
"author": "philipedc",
|
|
@@ -34,7 +33,6 @@
|
|
|
34
33
|
"bugs": {
|
|
35
34
|
"url": "https://github.com/philipedc/lite-email-parser/issues"
|
|
36
35
|
},
|
|
37
|
-
"homepage": "https://github.com/philipedc/lite-email-parser#readme",
|
|
38
36
|
"keywords": [
|
|
39
37
|
"email",
|
|
40
38
|
"parser",
|