pagespeed-quest 0.9.0 → 0.10.0
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/build/command.js +23 -3
- package/build/docs/assets/css/main.css +1 -0
- package/build/docs/assets/images/icons.png +0 -0
- package/build/docs/assets/images/icons@2x.png +0 -0
- package/build/docs/assets/images/widgets.png +0 -0
- package/build/docs/assets/images/widgets@2x.png +0 -0
- package/build/docs/assets/js/main.js +51 -0
- package/build/docs/classes/inventoryrepository.html +305 -0
- package/build/docs/classes/playbackproxy.html +524 -0
- package/build/docs/classes/proxy.html +474 -0
- package/build/docs/classes/recordingproxy.html +532 -0
- package/build/docs/classes/testproxy.html +497 -0
- package/build/docs/classes/throttle.html +425 -0
- package/build/docs/classes/throttlinglog.html +174 -0
- package/build/docs/classes/throttlingtransform.html +6297 -0
- package/build/docs/globals.html +1131 -0
- package/build/docs/index.html +348 -0
- package/build/docs/interfaces/beautifyresult.html +174 -0
- package/build/docs/interfaces/contentencodingpair.html +174 -0
- package/build/docs/interfaces/inventory.html +174 -0
- package/build/docs/interfaces/lighthouseoptions.html +230 -0
- package/build/docs/interfaces/playbacktransaction.html +272 -0
- package/build/docs/interfaces/proxyoptions.html +423 -0
- package/build/docs/interfaces/recordingsession.html +174 -0
- package/build/docs/interfaces/recordingtransaction.html +286 -0
- package/build/docs/interfaces/resource.html +314 -0
- package/build/docs/interfaces/transaction.html +258 -0
- package/build/docs/interfaces/withproxyoptions.html +418 -0
- package/build/logger.d.ts +2 -0
- package/build/logger.js +15 -0
- package/build/proxy.d.ts +35 -0
- package/build/proxy.js +96 -0
- package/build/recording.d.ts +2 -0
- package/build/recording.js +125 -8
- package/build/throttling.d.ts +33 -0
- package/build/throttling.js +89 -0
- package/package.json +4 -4
- package/scripts/postinstall.js +1 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html class="default no-js">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<title>pagespeed-quest</title>
|
|
7
|
+
<meta name="description" content="Documentation for pagespeed-quest">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
<link rel="stylesheet" href="assets/css/main.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<header>
|
|
13
|
+
<div class="tsd-page-toolbar">
|
|
14
|
+
<div class="container">
|
|
15
|
+
<div class="table-wrap">
|
|
16
|
+
<div class="table-cell" id="tsd-search" data-index="assets/js/search.json" data-base=".">
|
|
17
|
+
<div class="field">
|
|
18
|
+
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
19
|
+
<input id="tsd-search-field" type="text" />
|
|
20
|
+
</div>
|
|
21
|
+
<ul class="results">
|
|
22
|
+
<li class="state loading">Preparing search index...</li>
|
|
23
|
+
<li class="state failure">The search index is not available</li>
|
|
24
|
+
</ul>
|
|
25
|
+
<a href="index.html" class="title">pagespeed-quest</a>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="table-cell" id="tsd-widgets">
|
|
28
|
+
<div id="tsd-filter">
|
|
29
|
+
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
30
|
+
<div class="tsd-filter-group">
|
|
31
|
+
<div class="tsd-select" id="tsd-filter-visibility">
|
|
32
|
+
<span class="tsd-select-label">All</span>
|
|
33
|
+
<ul class="tsd-select-list">
|
|
34
|
+
<li data-value="public">Public</li>
|
|
35
|
+
<li data-value="protected">Public/Protected</li>
|
|
36
|
+
<li data-value="private" class="selected">All</li>
|
|
37
|
+
</ul>
|
|
38
|
+
</div>
|
|
39
|
+
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
40
|
+
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
41
|
+
<input type="checkbox" id="tsd-filter-externals" checked />
|
|
42
|
+
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
|
43
|
+
<input type="checkbox" id="tsd-filter-only-exported" />
|
|
44
|
+
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="tsd-page-title">
|
|
53
|
+
<div class="container">
|
|
54
|
+
<ul class="tsd-breadcrumb">
|
|
55
|
+
<li>
|
|
56
|
+
<a href="globals.html">Globals</a>
|
|
57
|
+
</li>
|
|
58
|
+
</ul>
|
|
59
|
+
<h1>pagespeed-quest</h1>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</header>
|
|
63
|
+
<div class="container container-main">
|
|
64
|
+
<div class="row">
|
|
65
|
+
<div class="col-8 col-content">
|
|
66
|
+
<div class="tsd-panel tsd-typography">
|
|
67
|
+
<p>| <a href="./README.ja.md">日本語</a> | <a href="./README.md">English</a> |</p>
|
|
68
|
+
<a href="#pagespeed-quest" id="pagespeed-quest" style="color: inherit; text-decoration: none;">
|
|
69
|
+
<h1>PageSpeed Quest</h1>
|
|
70
|
+
</a>
|
|
71
|
+
<p>PageSpeed Quest is a framework to assist in improving the speed of web frontend.</p>
|
|
72
|
+
<p>There are numerous methods and ideas to enhance the speed of a web frontend, including the fix of bottlenecks. However, even if theoretically effective methods are implemented in applications, the expected results are often not achieved.</p>
|
|
73
|
+
<p>By utilizing PageSpeed Quest, you can rapidly iterate on the hypothesis testing of methods and prioritize the implementation of effective ideas.</p>
|
|
74
|
+
<a href="#mechanism" id="mechanism" style="color: inherit; text-decoration: none;">
|
|
75
|
+
<h2>Mechanism</h2>
|
|
76
|
+
</a>
|
|
77
|
+
<p>Those who are familiar with the Web API mocking tool <a href="https://github.com/vcr/vcr">VCR</a> can understand it as an extension of that tool for web pages.</p>
|
|
78
|
+
<p><a href="https://developer.chrome.com/docs/lighthouse/overview/">Lighthouse</a> is executed via an HTTP proxy provided by PageSpeed Quest. This HTTP proxy not only relays between the web server and Lighthouse but also "records" web page resources by converting them into a set of files like static pages.</p>
|
|
79
|
+
<p><img src="./docs/recording.png" alt="Recording"></p>
|
|
80
|
+
<p>From then on, instead of accessing the web server, the server's response is "played back" using the recorded static files. During this, the latency and throughput of each resource traffic are reproduced as much as possible.</p>
|
|
81
|
+
<p><img src="./docs/playback.png" alt="Playback"></p>
|
|
82
|
+
<p>Thanks to this mechanism, instead of actually modifying the application, you can quickly test the impact on measurement results by only changing the set of static files.</p>
|
|
83
|
+
<a href="#how-to-use" id="how-to-use" style="color: inherit; text-decoration: none;">
|
|
84
|
+
<h2>How to use</h2>
|
|
85
|
+
</a>
|
|
86
|
+
<p>Node JS 18 or higher is required.</p>
|
|
87
|
+
<a href="#creating-a-project" id="creating-a-project" style="color: inherit; text-decoration: none;">
|
|
88
|
+
<h3>Creating a project</h3>
|
|
89
|
+
</a>
|
|
90
|
+
<p>First, create a project to proceed with hypothesis testing. Change the directory name as needed.</p>
|
|
91
|
+
<pre><code class="language-sh">mkdir my-first-quest
|
|
92
|
+
<span class="hljs-built_in">cd</span> my-first-quest
|
|
93
|
+
yarn init -y
|
|
94
|
+
yarn add pagespeed-quest -D
|
|
95
|
+
</code></pre>
|
|
96
|
+
<a href="#recording-a-web-page" id="recording-a-web-page" style="color: inherit; text-decoration: none;">
|
|
97
|
+
<h3>Recording a web page</h3>
|
|
98
|
+
</a>
|
|
99
|
+
<p>Run Lighthouse with the following command and record the files needed for measurement. Please change the URL.</p>
|
|
100
|
+
<pre><code class="language-sh">yarn psq lighthouse recording https://example.com/
|
|
101
|
+
</code></pre>
|
|
102
|
+
<p>Files are created in the <code>inventory</code> directory.</p>
|
|
103
|
+
<ul>
|
|
104
|
+
<li><code>inventory/index.json</code> List of resources and metadata</li>
|
|
105
|
+
<li><code>inventory/[method]/[protocol]/[hostname]/[...path]</code> Content of each resource</li>
|
|
106
|
+
</ul>
|
|
107
|
+
<p>By modifying these files, you can change the resources, metadata, and transfer speed that Lighthouse receives in the playback operation explained next.</p>
|
|
108
|
+
<a href="#playback-and-measurement-of-the-web-page" id="playback-and-measurement-of-the-web-page" style="color: inherit; text-decoration: none;">
|
|
109
|
+
<h3>Playback and measurement of the web page</h3>
|
|
110
|
+
</a>
|
|
111
|
+
<p>Play back the web page with the following command and measure it with Lighthouse.</p>
|
|
112
|
+
<pre><code class="language-sh">yarn psq lighthouse playback
|
|
113
|
+
</code></pre>
|
|
114
|
+
<p>A report page is automatically displayed. Report files and the like are created in the <code>artifacts</code> directory.</p>
|
|
115
|
+
<a href="#launching-the-playback-proxy" id="launching-the-playback-proxy" style="color: inherit; text-decoration: none;">
|
|
116
|
+
<h2>Launching the playback proxy</h2>
|
|
117
|
+
</a>
|
|
118
|
+
<p>You can launch only the proxy that plays back the web page with the following command.</p>
|
|
119
|
+
<pre><code class="language-sh">yarn psq proxy -p 8080
|
|
120
|
+
</code></pre>
|
|
121
|
+
<p>By setting the HTTP proxy of a regular browser to <code>http://localhost:8080</code>, you can closely observe the performance timeline in developer tools.</p>
|
|
122
|
+
<p>However, since this HTTP proxy uses a dummy SSL certificate, please disable the browser's SSL certificate error check. For example, on MacOS, you can launch Chrome with the HTTP proxy set to <code>http://localhost:8080</code> and the SSL certificate error check disabled with the following command.</p>
|
|
123
|
+
<pre><code class="language-sh">/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --ignore-certificate-errors --proxy-server=http://localhost:8080
|
|
124
|
+
</code></pre>
|
|
125
|
+
<a href="#for-sharing-development-environments-and-training" id="for-sharing-development-environments-and-training" style="color: inherit; text-decoration: none;">
|
|
126
|
+
<h2>For Sharing Development Environments and Training</h2>
|
|
127
|
+
</a>
|
|
128
|
+
<p>PageSpeed Quest is useful not only for speedy hypothesis verification without the need for a Web application release but also for other purposes.</p>
|
|
129
|
+
<ul>
|
|
130
|
+
<li><code>Third-party Collaboration</code>: There may be times when it is difficult to share the development environment when seeking the cooperation of third parties. You can easily share a virtual development environment for the Web frontend.</li>
|
|
131
|
+
<li><code>Training</code>: Not just for your own site, but you can train to improve the speed of any Web page's frontend.</li>
|
|
132
|
+
</ul>
|
|
133
|
+
<a href="#contact" id="contact" style="color: inherit; text-decoration: none;">
|
|
134
|
+
<h2>Contact</h2>
|
|
135
|
+
</a>
|
|
136
|
+
<p>For technical support or business use, please contact <a href="mailto:contact@ideamans.com">contact@ideamans.com</a>.</p>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
140
|
+
<nav class="tsd-navigation primary">
|
|
141
|
+
<ul>
|
|
142
|
+
<li class="globals ">
|
|
143
|
+
<a href="globals.html"><em>Globals</em></a>
|
|
144
|
+
</li>
|
|
145
|
+
</ul>
|
|
146
|
+
</nav>
|
|
147
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
148
|
+
<ul class="before-current">
|
|
149
|
+
<li class=" tsd-kind-class">
|
|
150
|
+
<a href="classes/inventoryrepository.html" class="tsd-kind-icon">Inventory<wbr>Repository</a>
|
|
151
|
+
</li>
|
|
152
|
+
<li class=" tsd-kind-class">
|
|
153
|
+
<a href="classes/playbackproxy.html" class="tsd-kind-icon">Playback<wbr>Proxy</a>
|
|
154
|
+
</li>
|
|
155
|
+
<li class=" tsd-kind-class">
|
|
156
|
+
<a href="classes/proxy.html" class="tsd-kind-icon">Proxy</a>
|
|
157
|
+
</li>
|
|
158
|
+
<li class=" tsd-kind-class">
|
|
159
|
+
<a href="classes/recordingproxy.html" class="tsd-kind-icon">Recording<wbr>Proxy</a>
|
|
160
|
+
</li>
|
|
161
|
+
<li class=" tsd-kind-class">
|
|
162
|
+
<a href="classes/testproxy.html" class="tsd-kind-icon">Test<wbr>Proxy</a>
|
|
163
|
+
</li>
|
|
164
|
+
<li class=" tsd-kind-class">
|
|
165
|
+
<a href="classes/throttle.html" class="tsd-kind-icon">Throttle</a>
|
|
166
|
+
</li>
|
|
167
|
+
<li class=" tsd-kind-class">
|
|
168
|
+
<a href="classes/throttlinglog.html" class="tsd-kind-icon">Throttling<wbr>Log</a>
|
|
169
|
+
</li>
|
|
170
|
+
<li class=" tsd-kind-class">
|
|
171
|
+
<a href="classes/throttlingtransform.html" class="tsd-kind-icon">Throttling<wbr>Transform</a>
|
|
172
|
+
</li>
|
|
173
|
+
<li class=" tsd-kind-interface">
|
|
174
|
+
<a href="interfaces/beautifyresult.html" class="tsd-kind-icon">Beautify<wbr>Result</a>
|
|
175
|
+
</li>
|
|
176
|
+
<li class=" tsd-kind-interface">
|
|
177
|
+
<a href="interfaces/contentencodingpair.html" class="tsd-kind-icon">Content<wbr>Encoding<wbr>Pair</a>
|
|
178
|
+
</li>
|
|
179
|
+
<li class=" tsd-kind-interface">
|
|
180
|
+
<a href="interfaces/inventory.html" class="tsd-kind-icon">Inventory</a>
|
|
181
|
+
</li>
|
|
182
|
+
<li class=" tsd-kind-interface">
|
|
183
|
+
<a href="interfaces/lighthouseoptions.html" class="tsd-kind-icon">Lighthouse<wbr>Options</a>
|
|
184
|
+
</li>
|
|
185
|
+
<li class=" tsd-kind-interface">
|
|
186
|
+
<a href="interfaces/playbacktransaction.html" class="tsd-kind-icon">Playback<wbr>Transaction</a>
|
|
187
|
+
</li>
|
|
188
|
+
<li class=" tsd-kind-interface">
|
|
189
|
+
<a href="interfaces/proxyoptions.html" class="tsd-kind-icon">Proxy<wbr>Options</a>
|
|
190
|
+
</li>
|
|
191
|
+
<li class=" tsd-kind-interface">
|
|
192
|
+
<a href="interfaces/recordingsession.html" class="tsd-kind-icon">Recording<wbr>Session</a>
|
|
193
|
+
</li>
|
|
194
|
+
<li class=" tsd-kind-interface">
|
|
195
|
+
<a href="interfaces/recordingtransaction.html" class="tsd-kind-icon">Recording<wbr>Transaction</a>
|
|
196
|
+
</li>
|
|
197
|
+
<li class=" tsd-kind-interface">
|
|
198
|
+
<a href="interfaces/resource.html" class="tsd-kind-icon">Resource</a>
|
|
199
|
+
</li>
|
|
200
|
+
<li class=" tsd-kind-interface">
|
|
201
|
+
<a href="interfaces/transaction.html" class="tsd-kind-icon">Transaction</a>
|
|
202
|
+
</li>
|
|
203
|
+
<li class=" tsd-kind-interface">
|
|
204
|
+
<a href="interfaces/withproxyoptions.html" class="tsd-kind-icon">With<wbr>Proxy<wbr>Options</a>
|
|
205
|
+
</li>
|
|
206
|
+
<li class=" tsd-kind-type-alias">
|
|
207
|
+
<a href="globals.html#contentencodingtype" class="tsd-kind-icon">Content<wbr>Encoding<wbr>Type</a>
|
|
208
|
+
</li>
|
|
209
|
+
<li class=" tsd-kind-type-alias">
|
|
210
|
+
<a href="globals.html#formfactortype" class="tsd-kind-icon">Form<wbr>Factor<wbr>Type</a>
|
|
211
|
+
</li>
|
|
212
|
+
<li class=" tsd-kind-type-alias">
|
|
213
|
+
<a href="globals.html#httpheaders" class="tsd-kind-icon">Http<wbr>Headers</a>
|
|
214
|
+
</li>
|
|
215
|
+
<li class=" tsd-kind-variable">
|
|
216
|
+
<a href="globals.html#basenamemaxlength" class="tsd-kind-icon">Basename<wbr>Max<wbr>Length</a>
|
|
217
|
+
</li>
|
|
218
|
+
<li class=" tsd-kind-variable">
|
|
219
|
+
<a href="globals.html#chunksize" class="tsd-kind-icon">Chunk<wbr>Size</a>
|
|
220
|
+
</li>
|
|
221
|
+
<li class=" tsd-kind-variable">
|
|
222
|
+
<a href="globals.html#contentencodingmap" class="tsd-kind-icon">Content<wbr>Encoding<wbr>Map</a>
|
|
223
|
+
</li>
|
|
224
|
+
<li class=" tsd-kind-variable">
|
|
225
|
+
<a href="globals.html#directoryindex" class="tsd-kind-icon">Directory<wbr>Index</a>
|
|
226
|
+
</li>
|
|
227
|
+
<li class=" tsd-kind-variable">
|
|
228
|
+
<a href="globals.html#hashlength" class="tsd-kind-icon">Hash<wbr>Length</a>
|
|
229
|
+
</li>
|
|
230
|
+
<li class=" tsd-kind-variable">
|
|
231
|
+
<a href="globals.html#ignoreparams" class="tsd-kind-icon">Ignore<wbr>Params</a>
|
|
232
|
+
</li>
|
|
233
|
+
<li class=" tsd-kind-variable">
|
|
234
|
+
<a href="globals.html#ignoreparamsregex" class="tsd-kind-icon">Ignore<wbr>Params<wbr>Regex</a>
|
|
235
|
+
</li>
|
|
236
|
+
<li class=" tsd-kind-variable">
|
|
237
|
+
<a href="globals.html#indexfile" class="tsd-kind-icon">Index<wbr>File</a>
|
|
238
|
+
</li>
|
|
239
|
+
<li class=" tsd-kind-variable">
|
|
240
|
+
<a href="globals.html#inventorydir" class="tsd-kind-icon">Inventory<wbr>Dir</a>
|
|
241
|
+
</li>
|
|
242
|
+
<li class=" tsd-kind-variable">
|
|
243
|
+
<a href="globals.html#main" class="tsd-kind-icon">main</a>
|
|
244
|
+
</li>
|
|
245
|
+
<li class=" tsd-kind-variable">
|
|
246
|
+
<a href="globals.html#singleton" class="tsd-kind-icon">singleton</a>
|
|
247
|
+
</li>
|
|
248
|
+
<li class=" tsd-kind-function">
|
|
249
|
+
<a href="globals.html#compress" class="tsd-kind-icon">compress</a>
|
|
250
|
+
</li>
|
|
251
|
+
<li class=" tsd-kind-function">
|
|
252
|
+
<a href="globals.html#converteditabletext" class="tsd-kind-icon">convert<wbr>Editable<wbr>Text</a>
|
|
253
|
+
</li>
|
|
254
|
+
<li class=" tsd-kind-function">
|
|
255
|
+
<a href="globals.html#decompress" class="tsd-kind-icon">decompress</a>
|
|
256
|
+
</li>
|
|
257
|
+
<li class=" tsd-kind-function">
|
|
258
|
+
<a href="globals.html#ensureutf8string" class="tsd-kind-icon">ensure<wbr>Utf8<wbr>String</a>
|
|
259
|
+
</li>
|
|
260
|
+
<li class=" tsd-kind-function">
|
|
261
|
+
<a href="globals.html#iscss" class="tsd-kind-icon">is<wbr>Css</a>
|
|
262
|
+
</li>
|
|
263
|
+
<li class=" tsd-kind-function">
|
|
264
|
+
<a href="globals.html#ishtml" class="tsd-kind-icon">is<wbr>Html</a>
|
|
265
|
+
</li>
|
|
266
|
+
<li class=" tsd-kind-function">
|
|
267
|
+
<a href="globals.html#isjs" class="tsd-kind-icon">is<wbr>Js</a>
|
|
268
|
+
</li>
|
|
269
|
+
<li class=" tsd-kind-function">
|
|
270
|
+
<a href="globals.html#istext" class="tsd-kind-icon">is<wbr>Text</a>
|
|
271
|
+
</li>
|
|
272
|
+
<li class=" tsd-kind-function">
|
|
273
|
+
<a href="globals.html#lighthousecommands" class="tsd-kind-icon">lighthouse<wbr>Commands</a>
|
|
274
|
+
</li>
|
|
275
|
+
<li class=" tsd-kind-function">
|
|
276
|
+
<a href="globals.html#logger" class="tsd-kind-icon">logger</a>
|
|
277
|
+
</li>
|
|
278
|
+
<li class=" tsd-kind-function">
|
|
279
|
+
<a href="globals.html#normalizeurl" class="tsd-kind-icon">normalize<wbr>Url</a>
|
|
280
|
+
</li>
|
|
281
|
+
<li class=" tsd-kind-function">
|
|
282
|
+
<a href="globals.html#parsecontenttypeheader" class="tsd-kind-icon">parse<wbr>Content<wbr>Type<wbr>Header</a>
|
|
283
|
+
</li>
|
|
284
|
+
<li class=" tsd-kind-function">
|
|
285
|
+
<a href="globals.html#playback" class="tsd-kind-icon">playback</a>
|
|
286
|
+
</li>
|
|
287
|
+
<li class=" tsd-kind-function">
|
|
288
|
+
<a href="globals.html#proxycommands" class="tsd-kind-icon">proxy<wbr>Commands</a>
|
|
289
|
+
</li>
|
|
290
|
+
<li class=" tsd-kind-function">
|
|
291
|
+
<a href="globals.html#recording" class="tsd-kind-icon">recording</a>
|
|
292
|
+
</li>
|
|
293
|
+
<li class=" tsd-kind-function">
|
|
294
|
+
<a href="globals.html#requestcontentfilepath" class="tsd-kind-icon">request<wbr>Content<wbr>File<wbr>Path</a>
|
|
295
|
+
</li>
|
|
296
|
+
<li class=" tsd-kind-function">
|
|
297
|
+
<a href="globals.html#runlighthouse" class="tsd-kind-icon">run<wbr>Lighthouse</a>
|
|
298
|
+
</li>
|
|
299
|
+
<li class=" tsd-kind-function">
|
|
300
|
+
<a href="globals.html#stringifycontenttypeheader" class="tsd-kind-icon">stringify<wbr>Content<wbr>Type<wbr>Header</a>
|
|
301
|
+
</li>
|
|
302
|
+
<li class=" tsd-kind-function">
|
|
303
|
+
<a href="globals.html#withplaybackproxy" class="tsd-kind-icon">with<wbr>Playback<wbr>Proxy</a>
|
|
304
|
+
</li>
|
|
305
|
+
<li class=" tsd-kind-function tsd-has-type-parameter">
|
|
306
|
+
<a href="globals.html#withproxy" class="tsd-kind-icon">with<wbr>Proxy</a>
|
|
307
|
+
</li>
|
|
308
|
+
<li class=" tsd-kind-function">
|
|
309
|
+
<a href="globals.html#withrecordingproxy" class="tsd-kind-icon">with<wbr>Recording<wbr>Proxy</a>
|
|
310
|
+
</li>
|
|
311
|
+
<li class=" tsd-kind-object-literal">
|
|
312
|
+
<a href="globals.html#prettierdefaultoptions" class="tsd-kind-icon">Prettier<wbr>Default<wbr>Options</a>
|
|
313
|
+
</li>
|
|
314
|
+
</ul>
|
|
315
|
+
</nav>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
</div>
|
|
319
|
+
<footer class="with-border-bottom">
|
|
320
|
+
<div class="container">
|
|
321
|
+
<h2>Legend</h2>
|
|
322
|
+
<div class="tsd-legend-group">
|
|
323
|
+
<ul class="tsd-legend">
|
|
324
|
+
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
325
|
+
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
326
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
327
|
+
</ul>
|
|
328
|
+
<ul class="tsd-legend">
|
|
329
|
+
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
|
330
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|
331
|
+
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|
332
|
+
</ul>
|
|
333
|
+
<ul class="tsd-legend">
|
|
334
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
335
|
+
</ul>
|
|
336
|
+
<ul class="tsd-legend">
|
|
337
|
+
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
338
|
+
</ul>
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
</footer>
|
|
342
|
+
<div class="container tsd-generator">
|
|
343
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
344
|
+
</div>
|
|
345
|
+
<div class="overlay"></div>
|
|
346
|
+
<script src="assets/js/main.js"></script>
|
|
347
|
+
</body>
|
|
348
|
+
</html>
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html class="default no-js">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<title>BeautifyResult | pagespeed-quest</title>
|
|
7
|
+
<meta name="description" content="Documentation for pagespeed-quest">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<header>
|
|
13
|
+
<div class="tsd-page-toolbar">
|
|
14
|
+
<div class="container">
|
|
15
|
+
<div class="table-wrap">
|
|
16
|
+
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
17
|
+
<div class="field">
|
|
18
|
+
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
19
|
+
<input id="tsd-search-field" type="text" />
|
|
20
|
+
</div>
|
|
21
|
+
<ul class="results">
|
|
22
|
+
<li class="state loading">Preparing search index...</li>
|
|
23
|
+
<li class="state failure">The search index is not available</li>
|
|
24
|
+
</ul>
|
|
25
|
+
<a href="../index.html" class="title">pagespeed-quest</a>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="table-cell" id="tsd-widgets">
|
|
28
|
+
<div id="tsd-filter">
|
|
29
|
+
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
30
|
+
<div class="tsd-filter-group">
|
|
31
|
+
<div class="tsd-select" id="tsd-filter-visibility">
|
|
32
|
+
<span class="tsd-select-label">All</span>
|
|
33
|
+
<ul class="tsd-select-list">
|
|
34
|
+
<li data-value="public">Public</li>
|
|
35
|
+
<li data-value="protected">Public/Protected</li>
|
|
36
|
+
<li data-value="private" class="selected">All</li>
|
|
37
|
+
</ul>
|
|
38
|
+
</div>
|
|
39
|
+
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
40
|
+
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
41
|
+
<input type="checkbox" id="tsd-filter-externals" checked />
|
|
42
|
+
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
|
43
|
+
<input type="checkbox" id="tsd-filter-only-exported" />
|
|
44
|
+
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="tsd-page-title">
|
|
53
|
+
<div class="container">
|
|
54
|
+
<ul class="tsd-breadcrumb">
|
|
55
|
+
<li>
|
|
56
|
+
<a href="../globals.html">Globals</a>
|
|
57
|
+
</li>
|
|
58
|
+
<li>
|
|
59
|
+
<a href="beautifyresult.html">BeautifyResult</a>
|
|
60
|
+
</li>
|
|
61
|
+
</ul>
|
|
62
|
+
<h1>Interface BeautifyResult</h1>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</header>
|
|
66
|
+
<div class="container container-main">
|
|
67
|
+
<div class="row">
|
|
68
|
+
<div class="col-8 col-content">
|
|
69
|
+
<section class="tsd-panel tsd-hierarchy">
|
|
70
|
+
<h3>Hierarchy</h3>
|
|
71
|
+
<ul class="tsd-hierarchy">
|
|
72
|
+
<li>
|
|
73
|
+
<span class="target">BeautifyResult</span>
|
|
74
|
+
</li>
|
|
75
|
+
</ul>
|
|
76
|
+
</section>
|
|
77
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
78
|
+
<h2>Index</h2>
|
|
79
|
+
<section class="tsd-panel tsd-index-panel">
|
|
80
|
+
<div class="tsd-index-content">
|
|
81
|
+
<section class="tsd-index-section ">
|
|
82
|
+
<h3>Properties</h3>
|
|
83
|
+
<ul class="tsd-index-list">
|
|
84
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="beautifyresult.html#charset" class="tsd-kind-icon">charset</a></li>
|
|
85
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="beautifyresult.html#content" class="tsd-kind-icon">content</a></li>
|
|
86
|
+
</ul>
|
|
87
|
+
</section>
|
|
88
|
+
</div>
|
|
89
|
+
</section>
|
|
90
|
+
</section>
|
|
91
|
+
<section class="tsd-panel-group tsd-member-group ">
|
|
92
|
+
<h2>Properties</h2>
|
|
93
|
+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
94
|
+
<a name="charset" class="tsd-anchor"></a>
|
|
95
|
+
<h3><span class="tsd-flag ts-flagOptional">Optional</span> charset</h3>
|
|
96
|
+
<div class="tsd-signature tsd-kind-icon">charset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
97
|
+
<aside class="tsd-sources">
|
|
98
|
+
<ul>
|
|
99
|
+
<li>Defined in <a href="https://github.com/ideamans/pagespeed-quest/blob/8dbbaab/src/formatting.ts#L35">src/formatting.ts:35</a></li>
|
|
100
|
+
</ul>
|
|
101
|
+
</aside>
|
|
102
|
+
</section>
|
|
103
|
+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
104
|
+
<a name="content" class="tsd-anchor"></a>
|
|
105
|
+
<h3>content</h3>
|
|
106
|
+
<div class="tsd-signature tsd-kind-icon">content<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span></div>
|
|
107
|
+
<aside class="tsd-sources">
|
|
108
|
+
<ul>
|
|
109
|
+
<li>Defined in <a href="https://github.com/ideamans/pagespeed-quest/blob/8dbbaab/src/formatting.ts#L34">src/formatting.ts:34</a></li>
|
|
110
|
+
</ul>
|
|
111
|
+
</aside>
|
|
112
|
+
</section>
|
|
113
|
+
</section>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
116
|
+
<nav class="tsd-navigation primary">
|
|
117
|
+
<ul>
|
|
118
|
+
<li class="globals ">
|
|
119
|
+
<a href="../globals.html"><em>Globals</em></a>
|
|
120
|
+
</li>
|
|
121
|
+
</ul>
|
|
122
|
+
</nav>
|
|
123
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
124
|
+
<ul class="before-current">
|
|
125
|
+
</ul>
|
|
126
|
+
<ul class="current">
|
|
127
|
+
<li class="current tsd-kind-interface">
|
|
128
|
+
<a href="beautifyresult.html" class="tsd-kind-icon">Beautify<wbr>Result</a>
|
|
129
|
+
<ul>
|
|
130
|
+
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
131
|
+
<a href="beautifyresult.html#charset" class="tsd-kind-icon">charset</a>
|
|
132
|
+
</li>
|
|
133
|
+
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
134
|
+
<a href="beautifyresult.html#content" class="tsd-kind-icon">content</a>
|
|
135
|
+
</li>
|
|
136
|
+
</ul>
|
|
137
|
+
</li>
|
|
138
|
+
</ul>
|
|
139
|
+
<ul class="after-current">
|
|
140
|
+
</ul>
|
|
141
|
+
</nav>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
<footer class="with-border-bottom">
|
|
146
|
+
<div class="container">
|
|
147
|
+
<h2>Legend</h2>
|
|
148
|
+
<div class="tsd-legend-group">
|
|
149
|
+
<ul class="tsd-legend">
|
|
150
|
+
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
151
|
+
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
152
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
153
|
+
</ul>
|
|
154
|
+
<ul class="tsd-legend">
|
|
155
|
+
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
|
156
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|
157
|
+
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|
158
|
+
</ul>
|
|
159
|
+
<ul class="tsd-legend">
|
|
160
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
161
|
+
</ul>
|
|
162
|
+
<ul class="tsd-legend">
|
|
163
|
+
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
164
|
+
</ul>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</footer>
|
|
168
|
+
<div class="container tsd-generator">
|
|
169
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="overlay"></div>
|
|
172
|
+
<script src="../assets/js/main.js"></script>
|
|
173
|
+
</body>
|
|
174
|
+
</html>
|