readpst 0.2.0 → 0.2.1
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 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,9 +9,10 @@ The `readpst` binary must be on your `PATH`:
|
|
|
9
9
|
```sh
|
|
10
10
|
brew install libpst # macOS
|
|
11
11
|
apt install pst-utils # Debian/Ubuntu
|
|
12
|
-
apk add libpst # Alpine
|
|
13
12
|
```
|
|
14
13
|
|
|
14
|
+
Alpine has no libpst package; build it from [source](https://www.five-ten-sg.com/libpst/) with `libgsf-dev` installed and `CFLAGS="-std=gnu17"` (GCC 15 rejects its pre-C23 declarations).
|
|
15
|
+
|
|
15
16
|
```sh
|
|
16
17
|
npm install readpst
|
|
17
18
|
```
|
package/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export async function extract(pstPath, { outDir, types = ["email"], readpstPath
|
|
|
23
23
|
} catch (error) {
|
|
24
24
|
if (error.code === "ENOENT") {
|
|
25
25
|
throw new Error(
|
|
26
|
-
`"${readpstPath}" not found. Install libpst: brew install libpst
|
|
26
|
+
`"${readpstPath}" not found. Install libpst: brew install libpst or apt install pst-utils`
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
throw new Error(`readpst failed: ${(error.stderr || error.stdout)?.trim() || error.message}`, { cause: error });
|
package/package.json
CHANGED