Skip to content

Commit

Permalink
release: updates README for 3.2.15 (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Thomas Burke <[email protected]>
  • Loading branch information
chapmandu and seantomburke authored Dec 20, 2024
1 parent 4532d5c commit 8859068
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,29 @@ Leaving a field out has the same effect as `<field>: false`. If not specified si
An example using all available options:

```javascript

import { HttpsProxyAgent } from 'hpagent';

const sitemapper = new Sitemapper({
url: 'https://art-works.community/sitemap.xml',
timeout: 15000,
requestHeaders: {
'User-Agent':
'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0',
},
timeout: 15000,
url: 'https://art-works.community/sitemap.xml',
debug: true,
concurrency: 2,
retries: 1,
lastmod: 1600000000000,
proxyAgent: new HttpsProxyAgent({
proxy: 'http://localhost:8080'
}),
exclusions: [/\/v1\//, /scary/],
rejectUnauthorized: false,
fields: {
loc: true,
lastmod: true,
changefreq: true,
priority: true,
},
proxyAgent: new HttpProxyAgent('http://localhost:8080'),
});
```

0 comments on commit 8859068

Please sign in to comment.