feature-policy-builder
v0.0.2
Published
Feature policy builder.
Downloads
5
Maintainers
Readme
feature-policy-builder
Feature policy builder.
Example
const builder = require('feature-policy-builder');
const featurePolicyDirectives = {
accelerometer: ["'none'"],
ambientLightSensor: ["'none'"],
'display-capture': ["'none'"],
};
console.log(`Feature-Policy: ${builder(featurePolicyDirectives)}`);
// Feature-Policy: accelerometer 'none'; ambient-light-sensor 'none'; display-capture 'none'