{"_id":"dns-prefetch-control","_rev":"1755050","name":"dns-prefetch-control","description":"Middleware to set X-DNS-Prefetch-Control header.","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"time":{"modified":"2021-11-29T01:35:22.000Z","created":"2016-01-13T05:20:24.705Z","0.3.0":"2019-09-01T18:30:19.146Z","0.2.0":"2019-05-11T13:57:03.174Z","0.1.0":"2016-01-13T05:20:24.705Z"},"users":{"astesio":true,"monjer":true},"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"repository":{"type":"git","url":"git://github.com/helmetjs/dns-prefetch-control.git"},"versions":{"0.3.0":{"name":"dns-prefetch-control","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Middleware to set X-DNS-Prefetch-Control header.","version":"0.3.0","license":"MIT","keywords":["helmet","security","express","connect","x-dns-prefetch-control","dns","prefetch"],"homepage":"https://helmetjs.github.io/docs/dns-prefetch-control","repository":{"type":"git","url":"git://github.com/helmetjs/dns-prefetch-control.git"},"bugs":{"url":"https://github.com/helmetjs/dns-prefetch-control/issues","email":"me@evanhahn.com"},"engines":{"node":">=8.0.0"},"scripts":{"pretest":"npm run lint","prepublishOnly":"npm run build","lint":"eslint --fix '**/*.ts'","test":"jest --config test/jest-config.json","clean":"rm -rf dist","build":"npm run clean && tsc"},"main":"./dist/index.js","typings":"./dist/index.d.ts","devDependencies":{"@types/connect":"^3.4.32","@types/jest":"^24.0.18","@types/supertest":"^2.0.8","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","connect":"^3.7.0","eslint":"^6.3.0","eslint-config-helmet":"^0.2.0","jest":"^24.9.0","supertest":"^4.0.2","ts-jest":"^24.0.2","typescript":"^3.6.2"},"gitHead":"71191648686ff168d83804b278c436867e9dad18","_id":"dns-prefetch-control@0.3.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"3dbca48b5e967ee3f7d71ea910300e229c654f11","size":2321,"noattachment":false,"key":"/dns-prefetch-control/-/dns-prefetch-control-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-prefetch-control/download/dns-prefetch-control-0.3.0.tgz"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-prefetch-control_0.3.0_1567362619028_0.5016849375683787"},"_hasShrinkwrap":false,"publish_time":1567362619146,"_cnpm_publish_time":1567362619146},"0.2.0":{"name":"dns-prefetch-control","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Middleware to set X-DNS-Prefetch-Control header.","version":"0.2.0","license":"MIT","keywords":["helmet","security","express","connect","x-dns-prefetch-control","dns","prefetch"],"homepage":"https://helmetjs.github.io/docs/dns-prefetch-control","repository":{"type":"git","url":"git://github.com/helmetjs/dns-prefetch-control.git"},"bugs":{"url":"https://github.com/helmetjs/dns-prefetch-control/issues","email":"me@evanhahn.com"},"engines":{"node":">=4.0.0"},"scripts":{"pretest":"npm run lint","prepublishOnly":"npm run build","lint":"eslint --fix '**/*.ts'","test":"jest --config test/jest-config.json","clean":"rm -rf dist","build":"npm run clean && tsc"},"main":"./dist/index.js","typings":"./dist/index.d.ts","devDependencies":{"@types/connect":"^3.4.32","@types/jest":"^24.0.12","@types/supertest":"^2.0.7","@typescript-eslint/eslint-plugin":"^1.8.0","@typescript-eslint/parser":"^1.8.0","connect":"^3.6.6","eslint":"^5.16.0","eslint-config-helmet":"^0.2.0","jest":"^24.8.0","supertest":"^4.0.2","ts-jest":"^24.0.2","typescript":"^3.4.5"},"gitHead":"382d192e9cd8a68cbd2054ef6d3d795b63f9d2dd","_id":"dns-prefetch-control@0.2.0","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"shasum":"73988161841f3dcc81f47686d539a2c702c88624","size":2295,"noattachment":false,"key":"/dns-prefetch-control/-/dns-prefetch-control-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-prefetch-control/download/dns-prefetch-control-0.2.0.tgz"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dns-prefetch-control_0.2.0_1557583023066_0.7785224343494441"},"_hasShrinkwrap":false,"publish_time":1557583023174,"_cnpm_publish_time":1557583023174},"0.1.0":{"name":"dns-prefetch-control","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"description":"Middleware to set X-DNS-Prefetch-Control header.","version":"0.1.0","license":"MIT","keywords":["helmet","security","express","connect","x-dns-prefetch-control","dns","prefetch"],"repository":{"type":"git","url":"git://github.com/helmetjs/dns-prefetch-control.git"},"bugs":{"url":"https://github.com/helmetjs/dns-prefetch-control/issues"},"scripts":{"test":"standard && mocha"},"devDependencies":{"connect":"^3.4.0","mocha":"^2.3.4","standard":"^5.4.1","supertest":"^1.1.0"},"standard":{"global":["beforeEach","describe","it"]},"gitHead":"c7684311d1766387dbbc517abb2e9cfbb55e7717","homepage":"https://github.com/helmetjs/dns-prefetch-control#readme","_id":"dns-prefetch-control@0.1.0","_shasum":"60ddb457774e178f1f9415f0cabb0e85b0b300b2","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"dist":{"shasum":"60ddb457774e178f1f9415f0cabb0e85b0b300b2","size":3030,"noattachment":false,"key":"/dns-prefetch-control/-/dns-prefetch-control-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/dns-prefetch-control/download/dns-prefetch-control-0.1.0.tgz"},"directories":{},"publish_time":1452662424705,"_cnpm_publish_time":1452662424705,"_hasShrinkwrap":false}},"readme":"DNS prefetch control header for Express\n=======================================\n[![Build Status](https://travis-ci.org/helmetjs/dns-prefetch-control.svg?branch=master)](https://travis-ci.org/helmetjs/dns-prefetch-control)\n\nThis middleware lets you set the `X-DNS-Prefetch-Control` to control browsers' DNS prefetching. Read more about it [on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Controlling_DNS_prefetching) and [on Chromium's docs](https://dev.chromium.org/developers/design-documents/dns-prefetching).\n\nUsage:\n\n```js\nconst dnsPrefetchControl = require('dns-prefetch-control')\n\n// Set X-DNS-Prefetch-Control: off\napp.use(dnsPrefetchControl())\n\n// Set X-DNS-Prefetch-Control: off\napp.use(dnsPrefetchControl({ allow: false }))\n\n// Set X-DNS-Prefetch-Control: on\napp.use(dnsPrefetchControl({ allow: true }))\n```\n","_attachments":{},"homepage":"https://helmetjs.github.io/docs/dns-prefetch-control","bugs":{"url":"https://github.com/helmetjs/dns-prefetch-control/issues","email":"me@evanhahn.com"},"license":"MIT"}