We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5cfc5 commit f7b5c66Copy full SHA for f7b5c66
lib/config/defaults.js
@@ -1,6 +1,4 @@
1
-import fs from 'fs';
2
-const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
3
-const defaultRequestUserAgent = `${packageJson.name}/${packageJson.version} (https://github.com/website-scraper/node-website-scraper)`;
+const defaultRequestUserAgent = 'website-scraper (https://github.com/website-scraper/node-website-scraper)';
4
5
const config = {
6
defaultFilename: 'index.html',
0 commit comments