@tinyhttp/cookie-signature
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.4 • Public • Published

    @tinyhttp/cookie-signature

    npm (scoped) npm

    HTTP cookie signing and unsigning. A rewrite of cookie-signature module.

    Install

    pnpm i @tinyhttp/cookie-signature

    API

    import { sign, unsign } from '@tinyhttp/cookie-signature'

    sign(val, secret)

    Signd the given val with secret.

    unsign(val, secret)

    Unsign and decode the given val with secret, returning false if the signature is invalid.

    Install

    npm i @tinyhttp/cookie-signature

    DownloadsWeekly Downloads

    24,320

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    3.46 kB

    Total Files

    5

    Last publish

    Collaborators

    • dropthebeatbro