Ver Fonte

renamed single-file.js to single-file and added single-file.bat

Gildas há 7 anos atrás
pai
commit
d55578d9ed
6 ficheiros alterados com 26 adições e 22 exclusões
  1. 12 12
      cli/README.MD
  2. 0 0
      cli/single-file
  3. 2 0
      cli/single-file.bat
  4. 10 10
      maff2html/README.MD
  5. 0 0
      maff2html/single-file
  6. 2 0
      maff2html/single-file.bat

+ 12 - 12
cli/README.MD

@@ -31,43 +31,43 @@ This is a **work in progress**.
 
   `$ npm install`
   
-- Make `single-file.js` executable (Linux/Unix/BSD etc.).
+- Make `single-file` executable (Linux/Unix/BSD etc.).
 
-  `$ chmod +x single-file.js`
+  `$ chmod +x single-file`
 
 ### Run
 
 - Syntax
  
-  `$ ./single-file.js <url> [output] [options ...]` (Linux/Unix/BSD etc.)
+  `$ ./single-file <url> [output] [options ...]` (Linux/Unix/BSD etc.)
 
-  `> node single-file.js <url> [output] [options ...]` (Windows)    
+  `> single-file <url> [output] [options ...]` (Windows)    
 
 - Display help
 
-  `$ ./single-file.js --help` (Linux/Unix/BSD etc.)
+  `$ ./single-file --help` (Linux/Unix/BSD etc.)
 
-  `> node single-file.js --help` (Windows)
+  `> single-file --help` (Windows)
 
 - Examples
 
   - Dump the processed content of https://www.wikipedia.org into the console
 
-  `$ ./single-file.js https://www.wikipedia.org` (Linux/Unix/BSD etc.)
+  `$ ./single-file https://www.wikipedia.org` (Linux/Unix/BSD etc.)
 
-  `> node single-file.js https://www.wikipedia.org` (Windows)
+  `> single-file https://www.wikipedia.org` (Windows)
 
   - Save https://www.wikipedia.org into `wikipedia.html`
 
-  `$ ./single-file.js https://www.wikipedia.org wikipedia.html` (Linux/Unix/BSD etc.)
+  `$ ./single-file https://www.wikipedia.org wikipedia.html` (Linux/Unix/BSD etc.)
   
-  `> node single-file.js https://www.wikipedia.org wikipedia.html` (Windows)
+  `> single-file https://www.wikipedia.org wikipedia.html` (Windows)
 
   - Save https://www.wikipedia.org into `wikipedia.html` with jsdom instead of Puppeteer
 
-  `$ ./single-file.js https://www.wikipedia.org wikipedia.html --back-end=jsdom` (Linux/Unix/BSD etc.)
+  `$ ./single-file https://www.wikipedia.org wikipedia.html --back-end=jsdom` (Linux/Unix/BSD etc.)
   
-  `> node single-file.js https://www.wikipedia.org wikipedia.html --back-end=jsdom` (Windows)
+  `> single-file https://www.wikipedia.org wikipedia.html --back-end=jsdom` (Windows)
   
 ## License
 

+ 0 - 0
cli/single-file.js → cli/single-file


+ 2 - 0
cli/single-file.bat

@@ -0,0 +1,2 @@
+@echo off
+node single-file %*

+ 10 - 10
maff2html/README.MD

@@ -27,37 +27,37 @@ SingleFile can be launched from the command line to convert MAFF files into HTML
 
   `$ npm install`
   
-- Make `single-file.js` executable (Linux/Unix/BSD etc.).
+- Make `single-file` executable (Linux/Unix/BSD etc.).
 
-  `$ chmod +x single-file.js`
+  `$ chmod +x single-file`
 
 ### Run
 
 - Syntax
  
-  `$ ./single-file.js <url> [output] [options ...]` (Linux/Unix/BSD etc.)
+  `$ ./single-file <url> [output] [options ...]` (Linux/Unix/BSD etc.)
 
-  `> node single-file.js <url> [output] [options ...]` (Windows)    
+  `> single-file <url> [output] [options ...]` (Windows)    
 
 - Display help
 
-  `$ ./single-file.js --help` (Linux/Unix/BSD etc.)
+  `$ ./single-file --help` (Linux/Unix/BSD etc.)
 
-  `> node single-file.js --help` (Windows)
+  `> single-file --help` (Windows)
 
 - Examples
 
   - Convert `wikipedia.maff` (located in the user directory) into `wikipedia.html`
 
-  `$ ./single-file.js file:///home/gildas/wikipedia.maff wikipedia.html` (Linux/Unix/BSD etc.)
+  `$ ./single-file file:///home/gildas/wikipedia.maff wikipedia.html` (Linux/Unix/BSD etc.)
   
-  `> node single-file.js file:///C:/Users/Gildas/wikipedia.maff wikipedia.html` (Windows)
+  `> single-file file:///C:/Users/Gildas/wikipedia.maff wikipedia.html` (Windows)
 
   - Convert `wikipedia.maff` (located in the user directory) into `wikipedia.html` with Firefox installed in the folder "~/firefox-56.0.2/" (Linux/Unix/BSD etc.) or "C:\Program Files\Mozilla Firefox 56.0.2\" (Windows)
 
-  `$ ./single-file.js file:///home/gildas/wikipedia.maff wikipedia.html --browser-executable-path=~/firefox-56.0.2/firefox` (Linux/Unix/BSD etc.)
+  `$ ./single-file file:///home/gildas/wikipedia.maff wikipedia.html --browser-executable-path=~/firefox-56.0.2/firefox` (Linux/Unix/BSD etc.)
   
-  `> node single-file.js file:///C:/Users/Gildas/wikipedia.maff wikipedia.html --browser-executable-path="C:\Program Files\Mozilla Firefox 56.0.2\firefox"` (Windows)
+  `> single-file file:///C:/Users/Gildas/wikipedia.maff wikipedia.html --browser-executable-path="C:\Program Files\Mozilla Firefox 56.0.2\firefox"` (Windows)
   
 ## License
 

+ 0 - 0
maff2html/single-file.js → maff2html/single-file


+ 2 - 0
maff2html/single-file.bat

@@ -0,0 +1,2 @@
+@echo off
+node single-file %*