acorn-csp

    0.0.4 • Public • Published

    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.

    Install

    npm i acorn-csp

    DownloadsWeekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • rreverser