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.
- Host: GitHub
- URL: https://github.com/rreverser/acorn-csp
- Owner: RReverser
- License: mit
- Created: 2014-09-06T12:28:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-08T21:58:40.000Z (almost 12 years ago)
- Last Synced: 2025-03-28T18:49:36.968Z (about 1 year ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.