|
@@ -4,16 +4,16 @@ Convert a DOM [DocumentType](https://developer.mozilla.org/en-US/docs/Web/API/Do |
|
|
- `<!DOCTYPE html>` |
|
|
- `<!DOCTYPE html>` |
|
|
- `<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">` |
|
|
- `<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">` |
|
|
|
|
|
|
|
|
# Install |
|
|
|
|
|
|
|
|
## Install |
|
|
|
|
|
|
|
|
npm install doctype-to-string |
|
|
npm install doctype-to-string |
|
|
|
|
|
|
|
|
# Usage |
|
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
|
import doctypeToString from 'doctype-to-string' |
|
|
import doctypeToString from 'doctype-to-string' |
|
|
|
|
|
|
|
|
const string = doctypeToString(document.doctype) |
|
|
const string = doctypeToString(document.doctype) |
|
|
|
|
|
|
|
|
# Licence |
|
|
|
|
|
|
|
|
## Licence |
|
|
|
|
|
|
|
|
[CC0](https://creativecommons.org/publicdomain/zero/1.0/); do whatever you want with this code. |
|
|
[CC0](https://creativecommons.org/publicdomain/zero/1.0/); do whatever you want with this code. |