@distalog/cookie-css

    1.0.3 • Public • Published

    cookie-css

    hapi handler to allow injecting CSS from cookies.

    Use it to create an endpoint that will serve CSS generated by the cookies it receive.

    Combined with cookie-param-handler it allows for instance to easily display dismissable consent forms on top of existing static contents with minimum efforts.

    It is specially useful to create consent screens that have to work whether or not Jaascript is available and enabled on the client.

    See code in the example directory for usage.

    Install

    npm i @distalog/cookie-css

    DownloadsWeekly Downloads

    60

    Version

    1.0.3

    License

    BSD-3-Clause

    Unpacked Size

    23.8 kB

    Total Files

    12

    Last publish

    Collaborators

    • deedf