Commit Graph

53 Commits

Author SHA1 Message Date
gardenapple
bfc742a0e1
Move from scoped yargs dependency to release candidate 2021-04-11 17:51:07 +03:00
gardenapple
9b43bec44e
Fix crash when sanitizing HTML 2021-03-16 19:18:12 +02:00
gardenapple
b5d80a68a4
Remove debug info 2021-02-04 23:39:49 +02:00
gardenapple
32b5737814
Also read http_proxy and lowercase https_proxy env vars 2021-02-04 23:22:01 +02:00
gardenapple
b004527216
Allow configuring JSDOM's ResourceLoader 2021-02-04 23:14:22 +02:00
gardenapple
1771f9e6b3
Add localization for --style option description 2021-02-04 22:32:34 +02:00
gardenapple
4acd520b45
Print author and horizontal line with custom styles as well 2021-02-04 22:15:18 +02:00
gardenapple
5f84b9741c
Adapt HTML to Firefox Reader Mode if --style is missing 2021-02-04 22:04:28 +02:00
gardenapple
c34d556dbc
Add Firefox Reader Mode stylesheet 2021-02-04 20:47:25 +02:00
gardenapple
7632a3d195
v2.0.0 pre-release 5, fix require('yargs') 2021-01-29 12:19:11 +02:00
gardenapple
189ce4cd46
Sanitize whole HTML as DOM rather than string 2021-01-29 11:32:27 +02:00
gardenapple
ceefa25625
Spit out HTML on Readability failure if --low-confidence=keep 2021-01-27 00:49:01 +02:00
gardenapple
74e40fc426
Output full <html> with <head> and <title> by default
Old behavior can be invoked by explicitly setting
--properties html-title html-content
2021-01-27 00:23:09 +02:00
gardenapple
eaaa11f808
Rename no-op to keep and alphabetize --help 2021-01-27 00:03:25 +02:00
gardenapple
a91521846c
Sanitize HTML by default 2021-01-26 23:41:25 +02:00
gardenapple
68f5a3b6c5
Rework output
Breaking changes:
* Properties are now printed as a single line (all except html-content
  and text-content)
* Properties are now printed without prefixes or localization
* Properties are now printed in the order given by the user
2021-01-26 21:56:18 +02:00
gardenapple
035ae5ff82
Russian localization + minor fixes 2021-01-25 22:10:23 +02:00
gardenapple
4ca8958355
Fix zsh completion and locale dir 2021-01-25 20:37:51 +02:00
gardenapple
86acd52b61
Better error handling, and beginning of i18n 2021-01-25 03:15:53 +02:00
gardenapple
2362e45247
Fix -- and --json option 2021-01-25 01:39:31 +02:00
gardenapple
0df0fbd3b4
Improved messages 2021-01-25 00:58:59 +02:00
gardenapple
7325c8b4ef
Deprecate (and improve) --is-url, add --is-file 2021-01-25 00:55:17 +02:00
gardenapple
32a4281288
Merge branch 'yargs' 2021-01-25 00:02:57 +02:00
gardenapple
921e6fb206
Better help formatting and autocompletion 2021-01-24 23:43:00 +02:00
gardenapple
d08103e500
Auto-completion works with all options 2021-01-24 23:17:06 +02:00
gardenapple
53be7c0c3a
Clearer comment 2021-01-12 17:59:19 +02:00
Olivier Tremblay
3d5c867c90 Introduce JSON-only output
For a specific use case where I want to arrange the output otherwise,
I require the ability to manipulate the output as JSON. So I added
an option for that.
2020-11-12 06:36:38 +00:00
gardenapple
c46b08effa
Migrate to Mozilla's NPM package 2020-08-13 23:39:06 +03:00
gardenapple
d752077cd6
Rename --url to --base 2020-08-09 18:05:25 +03:00
gardenapple
8c22aac58d
Playing around with auto-completion (- broken) 2020-08-09 03:49:49 +03:00
gardenapple
cbcc1e9a68
Cleanup, implement all options 2020-08-09 02:23:24 +03:00
gardenapple
ed2803d107
Convert from minimist to yargs 2020-08-09 02:01:51 +03:00
gardenapple
a423ae6766
Improved help, allow -h argument 2020-07-19 01:20:16 +03:00
gardenapple
366b405ad6
On-demand loading of JSDOM library 2020-07-15 18:13:13 +03:00
gardenapple
a97b1ee269
Added low-confidence mode, change default behavior 2020-07-15 17:20:04 +03:00
gardenapple
01276e726b
v1.0.3: better stability & performance + no URL warning 2020-07-15 15:42:22 +03:00
gardenapple
099752fa45
Add GPL-3.0 license 2020-07-15 13:37:33 +03:00
gardenapple
742d3435a3
Error handling for invalid URLs 2020-07-14 17:52:28 +03:00
gardenapple
708e0475c1
Url parameter 2020-07-14 17:27:04 +03:00
gardenapple
23f48e385f
Fix error handling 2020-07-13 23:49:17 +03:00
gardenapple
bf1935ecd4
Escape, not encode! 2020-07-13 23:46:05 +03:00
gardenapple
cd196c7b60
Added --quiet option 2020-07-13 23:39:10 +03:00
gardenapple
227bd1fad9
Option to interpret SOURCE as URL, by force 2020-07-13 23:34:49 +03:00
gardenapple
78f1cf5894
Rephrase help 2020-07-13 23:26:45 +03:00
gardenapple
1f9e7a3564
HTML encode the title! 2020-07-13 23:25:16 +03:00
gardenapple
12dda98492
Add package-lock.json back 2020-07-13 23:15:27 +03:00
gardenapple
8562d769f3
Show version string 2020-07-13 23:09:49 +03:00
gardenapple
8e7951a20a
Output specific properties 2020-07-13 22:59:05 +03:00
gardenapple
ef48da969a
Handle errors 2020-07-13 21:51:12 +03:00
gardenapple
b71cddfc14
Allow empty input parameter when piping 2020-07-13 21:12:50 +03:00