Forráskód Böngészése

Merge branch 'master' of https://github.com/gildas-lormeau/SingleFile into master

Gildas 5 éve
szülő
commit
05cd8e6efe
3 módosított fájl, 7 hozzáadás és 9 törlés
  1. 4 4
      cli/README.MD
  2. 1 3
      cli/singlefile-cli-api.js
  3. 2 2
      package.json

+ 4 - 4
cli/README.MD

@@ -62,17 +62,17 @@ SingleFile can be launched from the command line by running it into a (headless)
 
   - Dump the processed content of https://www.wikipedia.org into the console
 
-  `single-file https://www.wikipedia.org` --filename-template=""
+  `single-file https://www.wikipedia.org --filename-template=""`
 
-  - Save https://www.wikipedia.org into `wikipedia.html`
+  - Save https://www.wikipedia.org into `wikipedia.html` in the current folder
 
   `single-file https://www.wikipedia.org wikipedia.html`
 
-  - Save https://www.wikipedia.org into `wikipedia.html` with Firefox instead of Chrome
+  - Save https://www.wikipedia.org into `wikipedia.html` in the current folder with Firefox instead of Chrome
 
   `single-file https://www.wikipedia.org wikipedia.html --back-end=webdriver-gecko`
 
-  - Save a list of URLs stored into `list-urls.txt`
+  - Save a list of URLs stored into `list-urls.txt` in the current folder
 
   `single-file --urls-file=list-urls.txt`
 

+ 1 - 3
cli/singlefile-cli-api.js

@@ -1,5 +1,3 @@
-#!/usr/bin/env node
-
 /*
  * Copyright 2010-2020 Gildas Lormeau
  * contact : gildas.lormeau <at> gmail.com
@@ -204,4 +202,4 @@ function getFilename(filename, index = 1) {
 
 function escapeRegExp(string) {
 	return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
-}
+}

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "single-file",
-	"version": "0.1.0",
+	"version": "0.1.1",
 	"description": "SingleFile",
 	"author": "Gildas Lormeau",
 	"license": "AGPL-3.0-or-later",
@@ -18,4 +18,4 @@
 		"strong-data-uri": "^1.0.6",
 		"yargs": "^15.4.1"
 	}
-}
+}