From b94ae7f4eb71e8725a1fa00fcf6cdcd31061ef23 Mon Sep 17 00:00:00 2001 From: Gerben Date: Thu, 12 Apr 2018 10:54:20 +0200 Subject: [PATCH] Add Readme --- Readme.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..0aed9c1 --- /dev/null +++ b/Readme.md @@ -0,0 +1,19 @@ +# 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 doctype-to-string + +# 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.