default-opts.js 386 B

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