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

0.99.4 • Public • Published

Installation

npm install --save @types/vkbeautify

Summary

This package contains type definitions for vkbeautify (https://github.com/aabluedragon/vkbeautify).

Details

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

index.d.ts

// Original project: https://github.com/vkiryukhin/vkBeautify

// beautifying
/**
 * Pretty print an xml string with the given number of whitespace, or with a given indentation pattern
 */
export function xml(text: string, amountOfWhitespaces?: number | string): string;

/**
 * Pretty print a json string with the given number of whitespace, or with a given indentation pattern
 */
export function json(text: string, amountOfWhitespaces?: number | string): string;

/**
 * Pretty print a css string with the given number of whitespace, or with a given indentation pattern
 */
export function css(text: string, amountOfWhitespaces?: number | string): string;

/**
 * Pretty print an sql string with the given number of whitespace, or with a given indentation pattern
 */
export function sql(text: string, amountOfWhitespaces?: number | string): string;

// minifying
/**
 * Minifiy an xml string, and preserve or remove comments (default)
 */
export function xmlmin(text: string, preserveComments?: boolean): string;
/**
 * Minifiy a json string
 */
export function jsonmin(text: string): string;
/**
 * Minifiy a css string, and preserve or remove comments (default)
 */
export function cssmin(text: string, preserveComments?: boolean): string;
/**
 * Minifiy an sql string
 */
export function sqlmin(text: string): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Tim Schraepen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/vkbeautify

Weekly Downloads

8,256

Version

0.99.4

License

MIT

Unpacked Size

5.19 kB

Total Files

5

Last publish

Collaborators

  • types