Convert an object to a policy-type header, for use in Content-Security-Policy or Feature-Policy.
npm i object-policy
const policy = require('object-policy')
objectPolicy({
fooBar: [ 'a', 'b' ],
'baz-quux': [ 'one', 'two' ]
})
// => `foo-bar: a b; baz-quux: one two;`