An open API service indexing awesome lists of open source software.

https://github.com/rreverser/acorn-csp

Builder for Acorn that precompiles predicates in order to satisfy CSP.
https://github.com/rreverser/acorn-csp

Last synced: about 1 year ago
JSON representation

Builder for Acorn that precompiles predicates in order to satisfy CSP.

Awesome Lists containing this project

README

          

acorn-csp
=========

Builder for Acorn that precompiles and inlines predicates in order to satisfy Content Security Policy (CSP).

This workaround addresses [acorn#90](https://github.com/marijnh/acorn/issues/90) and [acorn#123](https://github.com/marijnh/acorn/issues/123) issues.

For generating CSP-safe version, execute following command:

```bash
acorn-csp [path to acorn]
```

And use generated file instead of original Acorn's `acorn.js`.

When path to acorn is not specified, it's assumed to be available as `require('acorn')` from current directory.