npm.io
0.4.3 • Published 2 years ago

@types/jsonminify

Licence
MIT
Version
0.4.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/jsonminify

Summary

This package contains type definitions for jsonminify (https://github.com/fkei/JSON.minify).

Details

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

index.d.ts

declare global {
    interface JSON {
        /**
         * minifies blocks of JSON-like content into valid JSON by removing all whitespace and comments.
         */
        minify(json: string): string;
    }
}

/**
 * minifies blocks of JSON-like content into valid JSON by removing all whitespace and comments.
 */
declare function minify(json: string): string;

export = minify;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Dan Homola, and Piotr Błażejewicz.