Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxsoft committed Jan 9, 2016
1 parent 7b7ed23 commit 7d7b198
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mhtml-parser",
"version": "1.0.1",
"version": "1.0.2",
"description": "MHTML file parser",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 6 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ parser.loadFile(__dirname + "/simple/simple.mht", {
});
```

### Parse by filename and read content manually
### Parse by filename and read content manually (Only tested in Windows & Linux)
```javascript
let parser = require('mhtml-parser');
let fs = require("fs");
Expand Down Expand Up @@ -65,12 +65,14 @@ To convert binary data to detected charset. Useless when **readMode == READ_MODE
### decodeQuotedPrintable: boolean
Default Value: false

To decode quoted-printable data, which is something like ``a=3D1``. Useless when **readMode == READ_MODE_POSITION**.
To decode quoted-printable data, which is something like ``<a href=3D\"http://zsxsoft.com\">``. Useless when **readMode == READ_MODE_POSITION**.

See here: https://github.com/mathiasbynens/quoted-printable

### readMode
Default Value: constants.
### readMode: string
Default Value: constants.READ_MODE_ALL

Avaiable items list here:
* **READ_MODE_ALL** - Read the whole file to the memory. You can directly get each file's content from ``data.fileName.data``
* **READ_MODE_POSITION** - Scan the whole file and only get the position and length of each file but not reading them.

Expand Down

0 comments on commit 7d7b198

Please sign in to comment.