default-opts.js 419 B

1234567891011121314151617181920
  1. const pkg = require('./package.json')
  2. module.exports = {
  3. log: require('./silentlog.js'),
  4. maxSockets: 12,
  5. method: 'GET',
  6. registry: 'https://registry.npmjs.org/',
  7. timeout: 5 * 60 * 1000, // 5 minutes
  8. strictSSL: true,
  9. noProxy: process.env.NOPROXY,
  10. userAgent: `${pkg.name
  11. }@${
  12. pkg.version
  13. }/node@${
  14. process.version
  15. }+${
  16. process.arch
  17. } (${
  18. process.platform
  19. })`,
  20. }