{"_id":"p3p","_rev":"7-07ebf890d7bbb440b0fe2bf816f7a9e0","name":"p3p","description":"middleware for including a P3P (Platform for Privacy Preferences Project) header in an express/connect application","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"p3p","version":"0.0.1","author":{"name":"Troy Goode","email":"troygoode@gmail.com","url":"https://github.com/troygoode/"},"description":"middleware for including a P3P (Platform for Privacy Preferences Project) header in an express/connect application","keywords":["p3p","express","connect","middleware","privacy","cookies","ie"],"homepage":"https://github.com/troygoode/node-p3p/","repository":{"type":"git","url":"git://github.com/troygoode/node-p3p.git"},"contributors":[{"name":"Troy Goode","email":"troygoode@gmail.com","url":"https://github.com/troygoode/"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/troygoode/troygoode/node-p3p/issues"},"main":"./lib/index.js","engines":{"node":">=0.8.0"},"dependencies":{"underscore":"latest"},"devDependencies":{"mocha":"latest","should":"latest"},"scripts":{"test":"mocha"},"readme":"# p3p\n\nA node.js package for providing a connect/express middleware that enables P3P with various options.\n\n[![build status](https://secure.travis-ci.org/TroyGoode/node-p3p.png)](http://travis-ci.org/TroyGoode/node-p3p)\n\n## Installation (via [npm](https://npmjs.org/package/p3p))\n\n```bash\n$ npm install p3p\n```\n\n## Usage\n\n### Simple Usage (Recommended P3P Settings)\n\n*Our recommended settings output:* `CP=\"NOI ADM DEV PSAi OUR OTRo STP IND COM NAV DEM\"`\n\n```javascript\nvar express = require('express')\n  , p3p = require('p3p')\n  , app = express();\n\napp.get('/', p3p(p3p.recommended), function(req, res, next){\n  res.send('Rendered with a P3P privacy policy header!');\n});\n\napp.listen(80, function(){\n  console.log('P3P-enabled web server listening on port 80');\n});\n```\n\n### Advanced Usage (Custom P3P Settings)\n\n*This example would output:* `CP=\"NOI CUR PSAi\"`\n\n```javascript\nvar express = require('express')\n  , p3p = require('p3p')\n  , app = express();\n\nvar p3pConfig = {\n  access: 'nonident',\n  purpose: {\n    current: true,\n    'individual-analysis': 'opt-in'\n  }\n};\n\napp.get('/', p3p(p3pConfig), function(req, res, next){\n  res.send('Rendered with a *CUSTOM* P3P privacy policy header!');\n});\n\napp.listen(80, function(){\n  console.log('*CUSTOM* P3P-enabled web server listening on port 80');\n});\n```\n\n## The Compact Specification\n\n[http://compactprivacypolicy.org/compact_specification.htm](http://compactprivacypolicy.org/compact_specification.htm)\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n\n## Author\n\n[Troy Goode](https://github.com/TroyGoode) ([troygoode@gmail.com](mailto:troygoode@gmail.com))\n","_id":"p3p@0.0.1","dist":{"shasum":"e453b9c0bf955c795c179784f16aaa6b6b4ed85b","tarball":"https://registry.npmjs.org/p3p/-/p3p-0.0.1.tgz","integrity":"sha512-F7bpqn61N+McYlO7Nm5N5c4HRbqTipdzYDScVzUvh0z6AgqWdDhirfGWBovnjoPpDNVEct/RS7GcYwcoBPZcPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAicKsSxrYCYhfL7c8TrAwfv1iPUlU9U1RWa4wgD6DxdAiAS2guUa0jSpXnnpcghka9am0PrEMKlFeiHWjH/MP1h5w=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"troygoode","email":"troygoode@gmail.com"},"maintainers":[{"name":"troygoode","email":"troygoode@gmail.com"}]},"0.0.2":{"name":"p3p","version":"0.0.2","author":{"name":"Troy Goode","email":"troygoode@gmail.com","url":"https://github.com/troygoode/"},"description":"middleware for including a P3P (Platform for Privacy Preferences Project) header in an express/connect application","keywords":["p3p","express","connect","middleware","privacy","cookies","ie"],"homepage":"https://github.com/troygoode/node-p3p/","repository":{"type":"git","url":"git://github.com/troygoode/node-p3p.git"},"contributors":[{"name":"Troy Goode","email":"troygoode@gmail.com","url":"https://github.com/troygoode/"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/troygoode/troygoode/node-p3p/issues"},"main":"./lib/index.js","engines":{"node":">=0.8.0"},"dependencies":{},"devDependencies":{"mocha":"latest","should":"latest"},"scripts":{"test":"mocha"},"readme":"# p3p\n\nA node.js package for providing a connect/express middleware that enables P3P with various options.\n\n[![build status](https://secure.travis-ci.org/TroyGoode/node-p3p.png)](http://travis-ci.org/TroyGoode/node-p3p)\n\n## Installation (via [npm](https://npmjs.org/package/p3p))\n\n```bash\n$ npm install p3p\n```\n\n## Usage\n\n### Simple Usage (Recommended P3P Settings)\n\n*Our recommended settings output:* `CP=\"NOI ADM DEV PSAi OUR OTRo STP IND COM NAV DEM\"`\n\n```javascript\nvar express = require('express')\n  , p3p = require('p3p')\n  , app = express();\n\napp.get('/', p3p(p3p.recommended), function(req, res, next){\n  res.send('Rendered with a P3P privacy policy header!');\n});\n\napp.listen(80, function(){\n  console.log('P3P-enabled web server listening on port 80');\n});\n```\n\n### Advanced Usage (Custom P3P Settings)\n\n*This example would output:* `CP=\"NOI CUR PSAi\"`\n\n```javascript\nvar express = require('express')\n  , p3p = require('p3p')\n  , app = express();\n\nvar p3pConfig = {\n  access: 'nonident',\n  purpose: {\n    current: true,\n    'individual-analysis': 'opt-in'\n  }\n};\n\napp.get('/', p3p(p3pConfig), function(req, res, next){\n  res.send('Rendered with a *CUSTOM* P3P privacy policy header!');\n});\n\napp.listen(80, function(){\n  console.log('*CUSTOM* P3P-enabled web server listening on port 80');\n});\n```\n\n## The Compact Specification\n\n[http://compactprivacypolicy.org/compact_specification.htm](http://compactprivacypolicy.org/compact_specification.htm)\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n\n## Author\n\n[Troy Goode](https://github.com/TroyGoode) ([troygoode@gmail.com](mailto:troygoode@gmail.com))\n","_id":"p3p@0.0.2","dist":{"shasum":"6a941280a6aeea5ef173b3ab9593b20299a18710","tarball":"https://registry.npmjs.org/p3p/-/p3p-0.0.2.tgz","integrity":"sha512-tPqraHmgJ6tXYaSt9a9cwM7+LkXisZwdrygSXEfNL+vxADgIPNI+jBufuiOoNaJ5XeXrrnn5L7BfWlUuYOdySA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICHGulkP4f+a6cVvm+5erIC1fhiBJBvhgTU669OPn2sMAiA6jilRfqA4dbVAL/xm/Fb+o4rsSJaFxqXea0gyAC0Ehg=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"troygoode","email":"troygoode@gmail.com"},"maintainers":[{"name":"troygoode","email":"troygoode@gmail.com"}]}},"readme":"# p3p\n\nA node.js package for providing a connect/express middleware that enables P3P with various options.\n\n[![build status](https://secure.travis-ci.org/TroyGoode/node-p3p.png)](http://travis-ci.org/TroyGoode/node-p3p)\n\n## Installation (via [npm](https://npmjs.org/package/p3p))\n\n```bash\n$ npm install p3p\n```\n\n## Usage\n\n### Simple Usage (Recommended P3P Settings)\n\n*Our recommended settings output:* `CP=\"NOI ADM DEV PSAi OUR OTRo STP IND COM NAV DEM\"`\n\n```javascript\nvar express = require('express')\n  , p3p = require('p3p')\n  , app = express();\n\napp.get('/', p3p(p3p.recommended), function(req, res, next){\n  res.send('Rendered with a P3P privacy policy header!');\n});\n\napp.listen(80, function(){\n  console.log('P3P-enabled web server listening on port 80');\n});\n```\n\n### Advanced Usage (Custom P3P Settings)\n\n*This example would output:* `CP=\"NOI CUR PSAi\"`\n\n```javascript\nvar express = require('express')\n  , p3p = require('p3p')\n  , app = express();\n\nvar p3pConfig = {\n  access: 'nonident',\n  purpose: {\n    current: true,\n    'individual-analysis': 'opt-in'\n  }\n};\n\napp.get('/', p3p(p3pConfig), function(req, res, next){\n  res.send('Rendered with a *CUSTOM* P3P privacy policy header!');\n});\n\napp.listen(80, function(){\n  console.log('*CUSTOM* P3P-enabled web server listening on port 80');\n});\n```\n\n## The Compact Specification\n\n[http://compactprivacypolicy.org/compact_specification.htm](http://compactprivacypolicy.org/compact_specification.htm)\n\n## License\n\n[MIT License](http://www.opensource.org/licenses/mit-license.php)\n\n## Author\n\n[Troy Goode](https://github.com/TroyGoode) ([troygoode@gmail.com](mailto:troygoode@gmail.com))\n","maintainers":[{"name":"troygoode","email":"troygoode@gmail.com"}],"time":{"modified":"2022-06-23T06:02:00.900Z","created":"2013-02-02T04:19:32.969Z","0.0.1":"2013-02-02T04:19:33.665Z","0.0.2":"2013-02-02T04:21:45.541Z"},"author":{"name":"Troy Goode","email":"troygoode@gmail.com","url":"https://github.com/troygoode/"},"repository":{"type":"git","url":"git://github.com/troygoode/node-p3p.git"}}