{"_id":"@types/domhandler","_rev":"2802801","name":"@types/domhandler","description":"TypeScript definitions for domhandler","dist-tags":{"latest":"2.4.2","ts2.0":"2.4.1","ts2.1":"2.4.1","ts2.2":"2.4.1","ts2.3":"2.4.1","ts2.4":"2.4.1","ts2.5":"2.4.1","ts2.6":"2.4.1","ts2.7":"2.4.1","ts2.8":"2.4.1","ts2.9":"2.4.1","ts3.0":"2.4.1","ts3.1":"2.4.1","ts3.2":"2.4.1","ts3.3":"2.4.1","ts3.4":"2.4.1","ts3.5":"2.4.1","ts3.6":"2.4.2","ts3.7":"2.4.2","ts3.8":"2.4.2","ts3.9":"2.4.2","ts4.0":"2.4.2","ts4.1":"2.4.2","ts4.2":"2.4.2","ts4.3":"2.4.2","ts4.4":"2.4.2","ts4.5":"2.4.2","ts4.6":"2.4.2","ts4.7":"2.4.2","ts4.8":"2.4.2","ts4.9":"2.4.2"},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:08.000Z","created":"2019-03-13T23:27:40.733Z","2.4.2":"2021-07-06T20:46:49.285Z","2.4.1":"2019-03-25T16:42:40.961Z","2.4.0":"2019-03-13T23:27:40.733Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/domhandler"},"versions":{"2.4.2":{"name":"@types/domhandler","version":"2.4.2","description":"TypeScript definitions for domhandler","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domhandler","license":"MIT","contributors":[{"name":"Johan Davidsson","url":"https://github.com/johandavidson","githubUsername":"johandavidson"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/domhandler"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"125509c324cf021fa0e211cfd1780659639facf466fa40143b2884f50b8eac53","typeScriptVersion":"3.6","_id":"@types/domhandler@2.4.2","dist":{"shasum":"5182cf74599b53a583146e13b0a68070b5f456f8","size":2194,"noattachment":false,"key":"/@types/domhandler/-/@types/domhandler-2.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/domhandler/download/@types/domhandler-2.4.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domhandler_2.4.2_1625604409181_0.9078126021550634"},"_hasShrinkwrap":false,"publish_time":1625604409285,"_cnpm_publish_time":1625604409285,"_cnpmcore_publish_time":"2021-12-16T10:29:24.594Z"},"2.4.1":{"name":"@types/domhandler","version":"2.4.1","description":"TypeScript definitions for domhandler","license":"MIT","contributors":[{"name":"Johan Davidsson","url":"https://github.com/johandavidson","githubUsername":"johandavidson"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/domhandler"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"07ac4daee8e2e8ab16b4902fe5628aad6353d27afa6d3153bd7b94bcf7dfc2d4","typeScriptVersion":"2.0","_id":"@types/domhandler@2.4.1","dist":{"shasum":"7b3b347f7762180fbcb1ece1ce3dd0ebbb8c64cf","size":2098,"noattachment":false,"key":"/@types/domhandler/-/@types/domhandler-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/domhandler/download/@types/domhandler-2.4.1.tgz"},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domhandler_2.4.1_1553532160870_0.9727104560876596"},"_hasShrinkwrap":false,"publish_time":1553532160961,"_cnpm_publish_time":1553532160961,"_cnpmcore_publish_time":"2021-12-16T10:29:24.801Z"},"2.4.0":{"name":"@types/domhandler","version":"2.4.0","description":"TypeScript definitions for domhandler","license":"MIT","contributors":[{"name":"Johan Davidsson","url":"https://github.com/johandavidson","githubUsername":"johandavidson"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/domhandler"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"eb3fbbaaec58e541cf4e68fedc5c259de13d519a5b2eac935f17e490bae475f5","typeScriptVersion":"2.1","_id":"@types/domhandler@2.4.0","dist":{"shasum":"25d704db432b5db809203100fd36f39ff4ad34ab","size":2114,"noattachment":false,"key":"/@types/domhandler/-/@types/domhandler-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/domhandler/download/@types/domhandler-2.4.0.tgz"},"maintainers":[{"name":"npm:types","email":""},{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domhandler_2.4.0_1552519660598_0.7390565538987586"},"_hasShrinkwrap":false,"publish_time":1552519660733,"_cnpm_publish_time":1552519660733,"_cnpmcore_publish_time":"2021-12-16T10:29:24.980Z"}},"readme":"# Installation\r\n> `npm install --save @types/domhandler`\r\n\r\n# Summary\r\nThis package contains type definitions for domhandler (https://github.com/fb55/DomHandler#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domhandler.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domhandler/index.d.ts)\r\n````ts\r\n// Type definitions for domhandler 2.4\n// Project: https://github.com/fb55/DomHandler#readme\n// Definitions by: Johan Davidsson <https://github.com/johandavidson>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\nexport interface DomHandlerOptions {\n    /***\n     * Indicates whether the whitespace in text nodes should be normalized\n     * (= all whitespace should be replaced with single spaces). The default value is \"false\".\n     */\n    normalizeWhitespace?: boolean | undefined;\n\n    /***\n     * Adds DOM level 1 properties to all elements.\n     */\n    withDomLvl1?: boolean | undefined;\n\n    /***\n     * Indicates whether a startIndex property will be added to nodes.\n     * When the parser is used in a non-streaming fashion, startIndex is an integer\n     * indicating the position of the start of the node in the document.\n     * The default value is \"false\".\n     */\n    withStartIndices?: boolean | undefined;\n\n    /***\n     * Indicates whether a endIndex property will be added to nodes.\n     * When the parser is used in a non-streaming fashion, endIndex is an integer\n     * indicating the position of the end of the node in the document.\n     * The default value is \"false\".\n     */\n    withEndIndices?: boolean | undefined;\n}\n\nexport interface DomElement {\n    attribs?: {[s: string]: string} | undefined;\n    children?: DomElement[] | undefined;\n    data?: any;\n    name?: string | undefined;\n    next?: DomElement | undefined;\n    parent?: DomElement | undefined;\n    prev?: DomElement | undefined;\n    type?: string | undefined;\n}\n\nexport interface Element extends DomElement {\n    name: string;\n}\n\nexport interface Node extends DomElement {\n    readonly firstChild: DomElement;\n    readonly lastChild: DomElement;\n    readonly nodeType: number;\n}\n\nexport class DomHandler {\n    constructor(callback: (error: any, dom: DomElement[]) => any, options?: DomHandlerOptions);\n\n    onparserinit(parser: any): void;\n\n    /***\n     * Resets the handler back to starting state\n     */\n    onreset(): void;\n\n    /***\n     * Signals the handler that parsing is done\n     */\n    onend(): void;\n    onerror(error: Error): void;\n    onclosetag(): void;\n    onopentag(name: string, attribs: {[s: string]: string}): void;\n    ontext(data: string): void;\n    oncomment(data: string): void;\n    oncdatastart(): void;\n    oncommentend(): void;\n    onprocessinginstruction(name: string, data: string): void;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 20:32:46 GMT\r\n * Dependencies: none\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Johan Davidsson](https://github.com/johandavidson).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domhandler","license":"MIT"}