This package has been deprecated

Author message:

Abandoned

object-policy

2.0.10 • Public • Published

object-policy

Convert an object to a policy-type header, for use in Content-Security-Policy or Feature-Policy.

Support with PayPal Patreon ko-fi


Installation

npm i object-policy

Usage

const policy = require('object-policy')

objectPolicy({
  fooBar: [ 'a', 'b' ],
  'baz-quux': [ 'one', 'two' ]
})
// => `foo-bar: a b; baz-quux: one two;`

LICENSE

Package Sidebar

Install

npm i object-policy

Weekly Downloads

0

Version

2.0.10

License

LGPL-3.0

Unpacked Size

14.3 kB

Total Files

12

Last publish

Collaborators

  • zacanger