JSPM

@types/cookie-signature

1.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 123981
  • Score
    100M100P100Q164068F
  • License MIT

TypeScript definitions for cookie-signature

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/cookie-signature) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/cookie-signature

    Summary

    This package contains type definitions for cookie-signature (https://github.com/tj/node-cookie-signature).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-signature.

    index.d.ts

    /// <reference types="node" />
    
    import type { CipherKey } from "node:crypto";
    
    /** Sign the given `val` with `secret`. */
    export function sign(value: string, secret: CipherKey): string;
    
    /**
     * Unsign and decode the given `val` with `secret`,
     * returning `false` if the signature is invalid.
     */
    export function unsign(value: string, secret: CipherKey): string | false;
    

    Additional Details

    • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
    • Dependencies: @types/node

    Credits

    These definitions were written by Junyoung Choi.