/
Dante
/
node-core
Обзор
Документация
Войти
/
Dante
/
node-core
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/node-html-markdown/dist/utilities.d.ts
33 строки
1 KB
Александр Данилюк
add
24 сен 2024, 12:59
24 сен 2024, 12:59
9eaeea8
Код
Авторство
О чём код?
import { NodeHtmlMarkdownOptions } from './options'; import { ElementNode, HtmlNode } from './nodes'; export declare const trimNewLines: (s: string) => string; export declare const surround: (source: string, surroundStr: string) => string; export declare const isWhiteSpaceOnly: (s: string) => boolean; /** * Split string, preserving specific newline used for each line */ export declare function splitSpecial(s: string): { text: string; newLineChar: '\r' | '\n' | '\r\n' | ''; }[]; /** * Surround tag content with delimiter (moving any leading/trailing space to outside the tag */ export declare function tagSurround(content: string, surroundStr: string): string; export declare const getTrailingWhitespaceInfo: (s: string) => { whitespace: number; newLines: number; }; /** * If value is truthy, returns `value` (or `v` if no `value` provided), otherwise, returns an empty string * @param v - Var to check for truthiness * @param value - Value to return if true */ export declare const truthyStr: (v: any, value?: string) => string; /** * Parser string to HTMLElement */ export declare function parseHTML(html: string, options: NodeHtmlMarkdownOptions): ElementNode; export declare function getChildNodes<T extends HtmlNode | Node>(node: T): T[]; export declare function perfStart(label: string): void; export declare function perfStop(label: string): void;