# doctype-to-string Convert a DOM [DocumentType](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType) (usually obtained via `document.doctype`) into a string, e.g.: - `` - `` ## Install npm install "git+https://code.treora.com/gerben/doctype-to-string#latest" ..or npm install doctype-to-string@latest ..or equivalent ## Usage import doctypeToString from 'doctype-to-string' const string = doctypeToString(document.doctype) ## Licence [CC0](https://creativecommons.org/publicdomain/zero/1.0/); do whatever you want with this code.