{"versions":{"5.0.1":{"name":"@types/turndown","version":"5.0.1","description":"TypeScript definitions for turndown","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown","license":"MIT","contributors":[{"name":"Sergey Zhidkov","url":"https://github.com/sergey-zhidkov","githubUsername":"sergey-zhidkov"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/turndown"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"5429e2087e436cbe96c108881d6d4615cfd05f2e6a798a893f79b04f26c282b9","typeScriptVersion":"3.6","_id":"@types/turndown@5.0.1","dist":{"shasum":"fcda7b02cda4c9d445be1440036df20f335b9387","size":2211,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/turndown/-/turndown-5.0.1.tgz","integrity":"sha512-N8Ad4e3oJxh9n9BiZx9cbe/0M3kqDpOTm2wzj13wdDUxDPjfjloWIJaquZzWE1cYTAHpjOH3rcTnXQdpEfS/SQ=="},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/turndown_5.0.1_1625255550383_0.9727773678632561"},"_hasShrinkwrap":false,"publish_time":1625255550588,"_cnpm_publish_time":1625255550588,"_cnpmcore_publish_time":"2021-12-15T17:57:02.362Z"},"5.0.0":{"name":"@types/turndown","version":"5.0.0","description":"TypeScript definitions for turndown","license":"MIT","contributors":[{"name":"Sergey Zhidkov","url":"https://github.com/sergey-zhidkov","githubUsername":"sergey-zhidkov"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/turndown"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"ed0455d3fb80a187c670ec7ceca4130031f44626786251fa02481f6edb59d1d8","typeScriptVersion":"2.7","_id":"@types/turndown@5.0.0","dist":{"shasum":"2b763b36f783e4e237cea62cdc8f8592b72b9285","size":2122,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/turndown/-/turndown-5.0.0.tgz","integrity":"sha512-Y7KZn6SfSv1vzjByJGijrM9w99HoUbLiAgYwe+sGH6RYi5diIGLYOcr4Z1YqR2biFs9K5PnxKv/Fbkmh57pvzg=="},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/turndown_5.0.0_1551402788123_0.9816278156852771"},"_hasShrinkwrap":false,"publish_time":1551402788406,"_cnpm_publish_time":1551402788406,"_cnpmcore_publish_time":"2021-12-15T17:57:02.541Z"},"5.0.2":{"name":"@types/turndown","version":"5.0.2","description":"TypeScript definitions for turndown","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown","license":"MIT","contributors":[{"name":"Sergey Zhidkov","url":"https://github.com/sergey-zhidkov","githubUsername":"sergey-zhidkov"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/turndown"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"606ad335b607a96cd39bd7583948ad8f42ba0e75f69cc1e866ed98dc0e699a43","typeScriptVersion":"4.3","_id":"@types/turndown@5.0.2","dist":{"integrity":"sha512-ghbjIyvMSQn/UGEuQJD6C4DfbokyYqGRhNAetWH02qnuRfvRZz9qTOG9e0RPkVqGsjv+YsjF3gRp7yFKvc/1PA==","shasum":"947138408c6ef0f8ead821d45ca89b329f531c72","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/turndown/-/turndown-5.0.2.tgz","fileCount":5,"unpackedSize":7535,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLzyKsiM/rWCJJxYyA6mdPEmNlvjqLtxly3/vPqY9pbAiAjIfio0d5kWCWPLdjNVmzm0W5NGkonjuI9KKv/xTPgCA=="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/turndown_5.0.2_1694523408079_0.8969965512256355"},"_hasShrinkwrap":false},"5.0.3":{"name":"@types/turndown","version":"5.0.3","description":"TypeScript definitions for turndown","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown","license":"MIT","contributors":[{"name":"Sergey Zhidkov","githubUsername":"sergey-zhidkov","url":"https://github.com/sergey-zhidkov"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/turndown"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"747a7f587cfa89e258a426931aeea0bc70899f1c3f8a283c55927e29a5a55820","typeScriptVersion":"4.5","_id":"@types/turndown@5.0.3","dist":{"integrity":"sha512-2PCZA9g/dkeHIGTf6ESMOD3Gz5RMpDzODtvlBbkLAdtKa/yTQDAFudDEVolHjaBUnu8ugd8BeTCWk4x0STnqkA==","shasum":"6ae194468558819461b6713bc76e3535975398b7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/turndown/-/turndown-5.0.3.tgz","fileCount":5,"unpackedSize":7003,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBD3/UdB1fUPVI5sTlWxvN7rQ8c1srzCuVYwlrGLSa19AiBAP+tLi89afXZnQZjKliSLu4gLmlnSWgdYMcuMWUfrcg=="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/turndown_5.0.3_1697647720978_0.9341335953245096"},"_hasShrinkwrap":false},"5.0.4":{"name":"@types/turndown","version":"5.0.4","description":"TypeScript definitions for turndown","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown","license":"MIT","contributors":[{"name":"Sergey Zhidkov","githubUsername":"sergey-zhidkov","url":"https://github.com/sergey-zhidkov"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/turndown"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"836ea45c399ef4e2bbee8a32b55521e779b03d68bcef10e4b811fe031260d504","typeScriptVersion":"4.5","_id":"@types/turndown@5.0.4","dist":{"integrity":"sha512-28GI33lCCkU4SGH1GvjDhFgOVr+Tym4PXGBIU1buJUa6xQolniPArtUT+kv42RR2N9MsMLInkr904Aq+ESHBJg==","shasum":"61fcdda2e539a86b1d40cb3277505f22ca76f014","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/turndown/-/turndown-5.0.4.tgz","fileCount":5,"unpackedSize":7003,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAXmaGFDIbRi2yEzTG/mW1vfBX3/+o0nNUGSL5aVA5DVAiAvOLnxJGXFLTn939ao4HibKTCEm17HWzU91wIQ1chdWg=="}]},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/turndown_5.0.4_1699380776284_0.01688411570995685"},"_hasShrinkwrap":false},"5.0.5":{"name":"@types/turndown","version":"5.0.5","license":"MIT","_id":"@types/turndown@5.0.5","maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"contributors":[{"url":"https://github.com/sergey-zhidkov","name":"Sergey Zhidkov","githubUsername":"sergey-zhidkov"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown","dist":{"shasum":"614de24fc9ace4d8c0d9483ba81dc8c1976dd26f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/turndown/-/turndown-5.0.5.tgz","fileCount":5,"integrity":"sha512-TL2IgGgc7B5j78rIccBtlYAnkuv8nUQqhQc+DSYV5j9Be9XOcm/SKOVRuA47xAVI3680Tk9B1d8flK2GWT2+4w==","signatures":[{"sig":"MEYCIQCwU/VjAxYvOAXnOXjYPcMhNWzbkbH7MsBDnuMdsLl80gIhANOO3ptls+/Jj6YSd2X/6Fp3PhgofUoK5UzTfiuMbCPS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7075},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/turndown"},"description":"TypeScript definitions for turndown","directories":{},"dependencies":{},"_hasShrinkwrap":false,"typeScriptVersion":"4.8","_npmOperationalInternal":{"tmp":"tmp/turndown_5.0.5_1721758184181_0.5033331698693013","host":"s3://npm-registry-packages"},"typesPublisherContentHash":"95974729b9e3d6cc8457be06736e85a48d564245d8a8da8a6b30ea2b9dc2a974"},"5.0.6":{"name":"@types/turndown","version":"5.0.6","license":"MIT","_id":"@types/turndown@5.0.6","maintainers":[{"name":"anonymous","email":"ts-npm-types@microsoft.com"}],"contributors":[{"url":"https://github.com/sergey-zhidkov","name":"Sergey Zhidkov","githubUsername":"sergey-zhidkov"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown","dist":{"shasum":"42a27397298a312d6088f29c0ff4819c518c1ecb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@types/turndown/-/turndown-5.0.6.tgz","fileCount":5,"integrity":"sha512-ru00MoyeeouE5BX4gRL+6m/BsDfbRayOskWqUvh7CLGW+UXxHQItqALa38kKnOiZPqJrtzJUgAC2+F0rL1S4Pg==","signatures":[{"sig":"MEUCIFiTm+hZJQjpxWBwDRlr5DShTa4F5+UVOIu0veMsZjvTAiEAgdDm6+Av3kb6Iqvx8PI2wMz5qgNI85OBefCqph8b4Cs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7131,"size":2221},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"anonymous","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/turndown"},"description":"TypeScript definitions for turndown","directories":{},"dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.2","_npmOperationalInternal":{"tmp":"tmp/turndown_5.0.6_1761500010650_0.12378614124391096","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"fc26e56b8bdf466d1f9be3041a9cdb3b75d107b5a1f8b45afa222d0638269f28","_cnpmcore_publish_time":"2025-10-26T17:33:30.865Z","publish_time":1761500010865,"_source_registry_name":"default"}},"dist-tags":{"latest":"5.0.6","ts2.7":"5.0.0","ts2.8":"5.0.0","ts2.9":"5.0.0","ts3.0":"5.0.0","ts3.1":"5.0.0","ts3.2":"5.0.0","ts3.3":"5.0.0","ts3.4":"5.0.0","ts3.5":"5.0.0","ts3.6":"5.0.1","ts3.7":"5.0.1","ts3.8":"5.0.1","ts3.9":"5.0.1","ts4.0":"5.0.1","ts4.1":"5.0.1","ts4.2":"5.0.1","ts4.3":"5.0.2","ts4.4":"5.0.2","ts4.5":"5.0.4","ts4.6":"5.0.4","ts4.7":"5.0.4","ts4.8":"5.0.5","ts4.9":"5.0.5","ts5.0":"5.0.5","ts5.1":"5.0.5","ts5.2":"5.0.6","ts5.3":"5.0.6","ts5.4":"5.0.6","ts5.5":"5.0.6","ts5.6":"5.0.6","ts5.7":"5.0.6","ts5.8":"5.0.6","ts5.9":"5.0.6","ts6.0":"5.0.6"},"name":"@types/turndown","time":{"created":"2022-01-27T15:04:51.281Z","modified":"2025-10-26T17:33:43.434Z","5.0.1":"2021-07-02T19:52:30.588Z","5.0.0":"2019-03-01T01:13:08.406Z","5.0.2":"2023-09-12T12:56:48.227Z","5.0.3":"2023-10-18T16:48:41.193Z","5.0.4":"2023-11-07T18:12:56.432Z","5.0.5":"2024-07-23T18:09:44.398Z","5.0.6":"2025-10-26T17:33:30.865Z"},"readme":"# Installation\r\n> `npm install --save @types/turndown`\r\n\r\n# Summary\r\nThis package contains type definitions for turndown (https://github.com/domchristie/turndown).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/turndown/index.d.ts)\r\n````ts\r\ndeclare class TurndownService {\n    constructor(options?: TurndownService.Options);\n\n    addRule(key: string, rule: TurndownService.Rule): this;\n    keep(filter: TurndownService.Filter): this;\n    remove(filter: TurndownService.Filter): this;\n    use(plugins: TurndownService.Plugin | TurndownService.Plugin[]): this;\n    escape(str: string): string;\n\n    turndown(html: string | TurndownService.Node): string;\n\n    options: TurndownService.Options;\n    rules: TurndownService.Rules;\n}\n\nexport = TurndownService;\n\ndeclare namespace TurndownService {\n    interface Options {\n        headingStyle?: \"setext\" | \"atx\" | undefined;\n        hr?: string | undefined;\n        br?: string | undefined;\n        bulletListMarker?: \"-\" | \"+\" | \"*\" | undefined;\n        codeBlockStyle?: \"indented\" | \"fenced\" | undefined;\n        emDelimiter?: \"_\" | \"*\" | undefined;\n        fence?: \"```\" | \"~~~\" | undefined;\n        strongDelimiter?: \"__\" | \"**\" | undefined;\n        linkStyle?: \"inlined\" | \"referenced\" | undefined;\n        linkReferenceStyle?: \"full\" | \"collapsed\" | \"shortcut\" | undefined;\n        preformattedCode?: boolean;\n\n        keepReplacement?: ReplacementFunction | undefined;\n        blankReplacement?: ReplacementFunction | undefined;\n        defaultReplacement?: ReplacementFunction | undefined;\n    }\n\n    interface Rule {\n        filter: Filter;\n        replacement?: ReplacementFunction | undefined;\n    }\n\n    interface Rules {\n        options: Options;\n        array: Rule[];\n\n        blankRule: ReplacementFunction;\n        defaultRule: ReplacementFunction;\n        keepReplacement: ReplacementFunction;\n\n        add(key: Filter, rule: Rule): void;\n        forEach(callback: (rule: Rule, index: number) => any): void;\n        forNode(node: HTMLElement): Rule;\n        keep(filter: Filter): void;\n        remove(filter: Filter): void;\n    }\n\n    type Plugin = (service: TurndownService) => void;\n    type Node = HTMLElement | Document | DocumentFragment;\n\n    type Filter = TagName | TagName[] | FilterFunction;\n    type FilterFunction = (node: HTMLElement, options: Options) => boolean;\n\n    type ReplacementFunction = (\n        content: string,\n        node: HTMLElement,\n        options: Options,\n    ) => string;\n\n    type TagName = keyof HTMLElementTagNameMap;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Sun, 26 Oct 2025 17:33:29 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Sergey Zhidkov](https://github.com/sergey-zhidkov).","users":{}}