0.4.2 • Published 2 years ago
@types/branca v0.4.2
Installation
npm install --save @types/branca
Summary
This package contains type definitions for branca (https://github.com/tuupola/branca-js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/branca.
index.d.ts
// Type definitions for branca 0.4
// Project: https://github.com/tuupola/branca-js
// Definitions by: Brett Cocking <https://github.com/BrettIRL>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
export = branca;
declare class Branca {
constructor(key: string | Buffer);
encode(message: string, timestamp?: number): string;
decode(token: string, ttl?: number): Buffer;
timestamp(token: string): number;
}
declare function branca(key: string | Buffer): Branca;
Additional Details
- Last updated: Tue, 22 Jun 2021 19:01:18 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Brett Cocking.