Skip to content

Commit

Permalink
hpagent option (#131)
Browse files Browse the repository at this point in the history
* hpagent option

* updated docs, readme

* Update sitemapper.js

* updating package-lock.json

---------

Co-authored-by: Mohammad <[email protected]>
Co-authored-by: Sean Thomas Burke <[email protected]>
  • Loading branch information
3 people authored Sep 23, 2024
1 parent 5a56e48 commit 9f7017b
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 286 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ You can add options on the initial Sitemapper object when instantiating it.
+ `rejectUnauthorized`: (Boolean) - If true, it will throw on invalid certificates, such as expired or self-signed ones. Default: True
+ `lastmod`: (Number) - Timestamp of the minimum lastmod value allowed for returned urls
+ `field` : (Object) - An object of fields to be returned from the sitemap. For Example: `{ loc: true, lastmod: true, changefreq: true, priority: true }`. Leaving a field out has the same effect as `field: false`. If not specified sitemapper defaults to returning the 'classic' array of urls.
+ `proxyAgent`: (HttpProxyAgent|HttpsProxyAgent) - instance of npm "hpagent" HttpProxyAgent or HttpsProxyAgent to be passed to npm "got"

```javascript

Expand Down
Loading

0 comments on commit 9f7017b

Please sign in to comment.