@types/jsum
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Installation

npm install --save @types/jsum

Summary

This package contains type definitions for jsum (https://github.com/fraunhoferfokus/JSum#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsum.

index.d.ts

/**
 * Creates hash of given JSON object.
 *
 * @param obj JSON object
 * @param hashAlgorithm hash algorithm (e.g. SHA256)
 * @param encoding hash encoding (e.g. base64) or none for buffer
 */
export function digest(obj: any, hashAlgorithm: string, encoding: string): string;

/**
 * Stringifies a JSON object (not any random JS object).
 *
 * It should be noted that JS objects can have members of
 * specific type (e.g. function), that are not supported
 * by JSON.
 *
 * @param obj JSON object
 * @returns stringified JSON object.
 */
export function stringify(obj: any): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by David Uzumeri.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/jsum

      Weekly Downloads

      11,291

      Version

      0.1.2

      License

      MIT

      Unpacked Size

      3.68 kB

      Total Files

      5

      Last publish

      Collaborators

      • types