Skip to content

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

License

Notifications You must be signed in to change notification settings

RReverser/acorn-csp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acorn-csp

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

This workaround addresses acorn#90 and acorn#123 issues.

For generating CSP-safe version, execute following command:

acorn-csp <destination filename> [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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published