{"versions":{"2.1.0":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"2.1.0","license":"MIT","keywords":["security","content","security","policy","csp","builder"],"homepage":"https://github.com/helmetjs/content-security-policy-builder","repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues","email":"me@evanhahn.com"},"engines":{"node":">=4.0.0"},"main":"./dist/index.js","typings":"./dist/index.d.ts","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"},"devDependencies":{"@types/jest":"^24.0.14","@typescript-eslint/eslint-plugin":"^1.9.0","@typescript-eslint/parser":"^1.9.0","eslint":"^5.16.0","eslint-config-helmet":"^0.2.0","jest":"^24.8.0","ts-jest":"^24.0.2","typescript":"^3.5.2"},"gitHead":"d06e06f6344acda38b64fe5a8fcf67ed77cdf58e","_id":"content-security-policy-builder@2.1.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","dist":{"shasum":"0a2364d769a3d7014eec79ff7699804deb8cfcbb","size":2344,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-2.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-security-policy-builder_2.1.0_1560449824009_0.8440454721126658"},"_hasShrinkwrap":false,"publish_time":1560449824187,"_cnpm_publish_time":1560449824187,"contributors":[]},"2.0.0":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"2.0.0","license":"MIT","keywords":["security","content","security","policy","csp","builder"],"repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues"},"scripts":{"pretest":"standard --fix","test":"mocha"},"devDependencies":{"mocha":"^5.0.0","standard":"^10.0.3"},"standard":{"globals":["describe","it"]},"gitHead":"df00a1af0afda5f6bed57bb7a35af0bd72c12181","homepage":"https://github.com/helmetjs/content-security-policy-builder#readme","_id":"content-security-policy-builder@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"dist":{"shasum":"8749a1d542fcbe82237281ea9f716ce68b394dd2","size":1914,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-2.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-security-policy-builder-2.0.0.tgz_1516725108001_0.698990891687572"},"directories":{},"publish_time":1516725109095,"_hasShrinkwrap":false,"_cnpm_publish_time":1516725109095,"contributors":[]},"1.1.0":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"1.1.0","license":"MIT","keywords":["security","content","security","policy","csp","builder"],"repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues"},"scripts":{"pretest":"standard","test":"mocha"},"devDependencies":{"mocha":"^2.5.3","standard":"^7.1.2"},"dependencies":{"dashify":"^0.2.0"},"standard":{"globals":["describe","it"]},"gitHead":"e21300ea451088159a276bf843da9b4bd2e0b792","homepage":"https://github.com/helmetjs/content-security-policy-builder#readme","_id":"content-security-policy-builder@1.1.0","_shasum":"d91f1b076236c119850c7dee9924bf55e05772b3","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.1","_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"dist":{"shasum":"d91f1b076236c119850c7dee9924bf55e05772b3","size":2570,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/content-security-policy-builder-1.1.0.tgz_1469997177462_0.008100698702037334"},"directories":{},"publish_time":1469997177698,"_cnpm_publish_time":1469997177698,"_hasShrinkwrap":false,"contributors":[]},"1.0.0":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"1.0.0","license":"MIT","keywords":["security","content","security","policy","csp","builder"],"repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues"},"scripts":{"test":"standard && mocha"},"devDependencies":{"mocha":"^2.3.4","standard":"^5.4.1"},"dependencies":{"dashify":"^0.2.0"},"standard":{"globals":["describe","it"]},"gitHead":"24391a00abc20be71e3a27c8e56d4589652794f2","homepage":"https://github.com/helmetjs/content-security-policy-builder#readme","_id":"content-security-policy-builder@1.0.0","_shasum":"11fd40c5cc298a6c725a35f9acf71e82ab5d3243","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"dist":{"shasum":"11fd40c5cc298a6c725a35f9acf71e82ab5d3243","size":3379,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-1.0.0.tgz"},"directories":{},"publish_time":1450466604880,"_cnpm_publish_time":1450466604880,"_hasShrinkwrap":false,"contributors":[]},"0.2.0":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"0.2.0","license":"MIT","keywords":["security","content","security","policy","csp","builder"],"repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"^2.3.0"},"dependencies":{"dashify":"^0.1.0"},"gitHead":"4228cd1fd9b606642016b2be2a236139161b8cfa","homepage":"https://github.com/helmetjs/content-security-policy-builder#readme","_id":"content-security-policy-builder@0.2.0","_shasum":"65a0688014708e701ea9ca35738215f4273f4055","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"dist":{"shasum":"65a0688014708e701ea9ca35738215f4273f4055","size":2287,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-0.2.0.tgz"},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"directories":{},"publish_time":1442615241821,"_cnpm_publish_time":1442615241821,"_hasShrinkwrap":false,"contributors":[]},"0.1.0":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"http://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"0.1.0","keywords":["security","content","security","policy","csp","builder"],"repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"^2.3.0"},"dependencies":{"dashify":"^0.1.0"},"gitHead":"0a2a4240f433c6cae46677ae9031fe48eb335464","homepage":"https://github.com/helmetjs/content-security-policy-builder#readme","_id":"content-security-policy-builder@0.1.0","_shasum":"41bf4e45287d385195ef12fa577d21063a7ab1f6","_from":".","_npmVersion":"2.14.2","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"dist":{"shasum":"41bf4e45287d385195ef12fa577d21063a7ab1f6","size":2877,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-0.1.0.tgz"},"directories":{},"publish_time":1441907397708,"_cnpm_publish_time":1441907397708,"_hasShrinkwrap":false,"contributors":[]},"2.1.1":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"2.1.1","license":"MIT","keywords":["security","content","security","policy","csp","builder"],"homepage":"https://github.com/helmetjs/content-security-policy-builder","repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues","email":"me@evanhahn.com"},"engines":{"node":">=4.0.0"},"main":"./dist/index.js","typings":"./dist/index.d.ts","scripts":{"pretest":"npm run lint","prepublishOnly":"npm run build","lint":"npm run lint:eslint && npm run lint:prettier","lint:eslint":"eslint .","lint:prettier":"prettier --check .","format":"prettier --write .","clean":"rm -rf dist","build":"npm run clean && tsc","test":"jest --config test/jest-config.json"},"devDependencies":{"@types/jest":"^27.4.1","@typescript-eslint/eslint-plugin":"^5.16.0","@typescript-eslint/parser":"^5.16.0","eslint":"^8.11.0","jest":"^27.5.1","prettier":"^2.6.0","ts-jest":"^27.1.3","typescript":"^4.6.2"},"gitHead":"1f0e2f0d55087cbb1c0bdeb210c6d6d2b443701c","_id":"content-security-policy-builder@2.1.1","_nodeVersion":"17.7.1","_npmVersion":"8.5.2","dist":{"integrity":"sha512-Bga6d4W37VMAeu3QQOorIbfEr16CIUuC8ZzKz+GecFfnBUWoU2RUdk8DTeb+ihe2BeDCs6T4PRAxFKU7lLh0mA==","shasum":"c10567fd981b9d5667dbcb10ffa4978d4b57a7b9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-2.1.1.tgz","fileCount":6,"unpackedSize":5018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiO7CeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZcw/+PrUOfbcNKyeSWTj7uOIAzOMQ2AAsUJdwgmt65L65SNhTUgsp\r\nf6M0x/O+uNvGSPwXLRQpDn386pWF3JLpQsze7wliXIDgyYclbUvMIHow+9nR\r\nM8TgZultW03sCIYGsmf5aTWctTWw332KsUENcnN5pHZFbgNt06vuI77cVA54\r\n+cniJSVGykft5mavNssgNT/bc+7xDgbAz26yXY5XnKjTpWG7BKazo7R5LMp/\r\nfT0urVjEVbZnZmqBn/v/7gjD7gZ1l4JQWEbfWxIgTI49KSfKSP+AzdC5Hhj4\r\nXAhDZShV49tdt8ktmy2eayXyznLtzp3GKa4l67V+v2BOfwdE87NbyTT0Qn1R\r\nwYli8Pn+ykUCCI+Nwv0rtPtSqMLvrkTSH/9ujGYBPZgcP2brj0LxylzvqgBt\r\n27A346j9REsSKcuX1PV+pp0YIF4MmaIH7yM8KzMQkmDqZdLgcEYLSrsFl2ow\r\n1jlchsRWq8TvGB1i0EEaEDg66pfBRl+RJLKusoqmtTXONJwIZAMMpG3J3ZyO\r\nyYAIHnPjFes6Ek2owQx1/xR9xLcisEqrOUKYoFnsRuTF3SqZiUnNkEpndQyr\r\n4kqcrL7mN7ey25C2Pi/7cRpRTzsgxXMwhvKO1h9oB3VF7V08sdUhsxeEO0pv\r\nTpNH5AGj5zmkv2QWwjtwU8aZ2d6MTVQSksM=\r\n=bCfM\r\n-----END PGP SIGNATURE-----\r\n","size":2502},"_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-security-policy-builder_2.1.1_1648079005749_0.327489450132622"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-23T23:59:01.279Z","contributors":[]},"2.2.0":{"name":"content-security-policy-builder","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Build Content Security Policy directives.","version":"2.2.0","license":"MIT","keywords":["security","content","security","policy","csp","builder"],"homepage":"https://github.com/helmetjs/content-security-policy-builder","repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues","email":"me@evanhahn.com"},"engines":{"node":">=18.0.0"},"sideEffects":false,"main":"./dist/index.js","typings":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pretest":"npm run lint","prepublishOnly":"npm run build","lint":"npm run lint:eslint && npm run lint:prettier","lint:eslint":"eslint .","lint:prettier":"prettier --check .","format":"prettier --write .","clean":"rm -rf dist","build":"npm run clean && tsc && npm run build:esm","build:esm":"sed 's/module.exports =/export default/' dist/index.js > dist/index.mjs","test":"ts-node test.ts"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^7.7.1","@typescript-eslint/parser":"^7.7.1","eslint":"^8.44.0","prettier":"^3.2.5","ts-node":"^10.9.1","typescript":"^5.4.5"},"_id":"content-security-policy-builder@2.2.0","gitHead":"0aff6f41b28b92cc0095bdcc0f266eeadfddbebe","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-IZhbHYV3O6xBpbvuMJz0FP8s79aTz7ymq4JQVC8TMzTdRToxrupCY1C/GlzC6GaDfKvD7AceewH+LsTV5OO/Kg==","shasum":"63c3512e973282171b4ff3cfde67aa6df5cc8b55","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-2.2.0.tgz","fileCount":7,"unpackedSize":5894,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClkQSu9NDR32fpX9/6h2SUjuw3j+BrOtHEDbXbRb9EYAIgcE3jlbYRBCYcjIy+1sfGNpFPTwtgiT69l1SsL6MZkvY="}],"size":2623},"_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-security-policy-builder_2.2.0_1714074907576_0.8680234155841524"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-25T19:55:07.819Z","publish_time":1714074907819,"_source_registry_name":"default","contributors":[]},"2.3.0":{"name":"content-security-policy-builder","version":"2.3.0","description":"Build Content Security Policy directives.","keywords":["security","content","security","policy","csp","builder"],"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"homepage":"https://github.com/helmetjs/content-security-policy-builder","repository":{"type":"git","url":"git://github.com/helmetjs/content-security-policy-builder.git"},"license":"MIT","bugs":{"url":"https://github.com/helmetjs/content-security-policy-builder/issues","email":"me@evanhahn.com"},"main":"./script/mod.js","module":"./esm/mod.js","exports":{".":{"import":"./esm/mod.js","require":"./script/mod.js"}},"engines":{"node":">=18.0.0"},"devDependencies":{"@types/node":"^20.9.0"},"_id":"content-security-policy-builder@2.3.0","gitHead":"1faebf9313428e29c47d8ee80f264ddd6f012ad8","types":"./script/mod.d.ts","_nodeVersion":"23.10.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-qmdEmn1M+WpadIeBLKr9Em8VJSCjtRINCSbYsyJHQ4liTwCmrLzIRpJdJpoVDnsvWUrR5iblYhQJqA4b4Hs/iw==","shasum":"4db08153db182a6c23f4f542be84594c1080bc6c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/content-security-policy-builder/-/content-security-policy-builder-2.3.0.tgz","fileCount":12,"unpackedSize":7007,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDC+/3yQtqRQQXUDqf+ga/V+KUxkZ3tFMiz5NerI/u3pwIgCayjjEMPHIC5P0bykdCWu8ObNuzsd/w8dn3vWwxpFiY="}],"size":2872},"_npmUser":{"name":"anonymous","email":"me@evanhahn.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"me@evanhahn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/content-security-policy-builder_2.3.0_1743195789070_0.7925809691192354"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-28T21:03:09.271Z","publish_time":1743195789271,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"2.3.0"},"name":"content-security-policy-builder","time":{"modified":"2025-03-28T21:22:52.801Z","created":"2022-01-27T07:17:49.174Z","2.1.0":"2019-06-13T18:17:04.187Z","2.0.0":"2018-01-23T16:31:49.095Z","1.1.0":"2016-07-31T20:32:57.698Z","1.0.0":"2015-12-18T19:23:24.880Z","0.2.0":"2015-09-18T22:27:21.821Z","0.1.0":"2015-09-10T17:49:57.708Z","2.1.1":"2022-03-23T23:43:26.016Z","2.2.0":"2024-04-25T19:55:07.819Z","2.3.0":"2025-03-28T21:03:09.271Z"},"readme":"# Content Security Policy builder\n\nTake an object and turn it into a Content Security Policy string.\n\nIt can handle a lot of things you can you throw at it; `camelCased` or\n`dash-separated` directives, arrays or strings, et cetera.\n\nUsage:\n\n```javascript\nimport builder from \"content-security-policy-builder\";\n\n// default-src 'self' default.com; script-src scripts.com; whatever-src something; object-src\nbuilder({\n  directives: {\n    defaultSrc: [\"'self'\", \"default.com\"],\n    scriptSrc: \"scripts.com\",\n    \"whatever-src\": \"something\",\n    objectSrc: true,\n  },\n});\n\n// default-src 'self'; whatever-src something\nbuilder({\n  directives: new Map([\n    [\"defaultSrc\", [\"'self'\", \"default.com\"]],\n    [\"whatever-src\", \"something\"],\n  ]),\n});\n```\n\nThis module is considered complete. I expect to continue maintenance if needed,\nbut I don't plan to add features or make breaking changes.","users":{}}