libreoffice-convert 1.6.0 → 1.6.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.
Files changed (3) hide show
  1. package/Readme.md +2 -1
  2. package/index.js +6 -3
  3. package/package.json +1 -1
package/Readme.md CHANGED
@@ -4,7 +4,8 @@ A simple and fast node.js module for converting office documents to different fo
4
4
 
5
5
  ## Dependency
6
6
 
7
- Please install libreoffice in /Applications (Mac), with your favorite package manager (Linux), or with the msi (Windows).
7
+ Please install libreoffice in /Applications (Mac), with your favorite package manager (Linux), or with the msi (Windows)
8
+ (On Windows, add `PROGRAMFILES` environment variable for Windows program files path to your local project)
8
9
 
9
10
  ## Usage example
10
11
 
package/index.js CHANGED
@@ -24,9 +24,12 @@ const convertWithOptions = (document, format, filter, options, callback) => {
24
24
  break;
25
25
  case 'win32': paths = [
26
26
  ...paths,
27
- path.join(process.env['PROGRAMFILES(X86)'], 'LIBREO~1/program/soffice.exe'),
28
- path.join(process.env['PROGRAMFILES(X86)'], 'LibreOffice/program/soffice.exe'),
29
- path.join(process.env.PROGRAMFILES, 'LibreOffice/program/soffice.exe'),
27
+ path.join(process.env['PROGRAMFILES(X86)'] || '', 'LIBREO~1/program/soffice.exe'),
28
+ path.join(process.env['PROGRAMFILES(X86)'] || '', 'LibreOffice/program/soffice.exe'),
29
+ path.join(process.env.PROGRAMFILES_X86 || '', 'LibreOffice/program/soffice.exe'),
30
+ path.join(process.env.PROGRAMFILES || '', 'LibreOffice/program/soffice.exe'),
31
+ process.env.LIBRE_OFFICE_EXE || '',
32
+ 'C:/Program Files/LibreOffice/program/soffice.exe'
30
33
  ];
31
34
  break;
32
35
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libreoffice-convert",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "A simple and fast node.js module for converting office documents to different formats",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",