Make Document Headers
Install
yarn add make-document-headers
Usage
const makeDocumentHeaders = ; ;
Generates:
Neat Site
API
makeDocumentHeaders(title, tags)
title
Type: string
The document title
tags
Type: Array<Object>
An array of tag objects
Tag
type
: The tag type as a string (e.g.script
,meta
,link
)attributes
: An object of attributes where the key is the attribute and the value is the attribute valueselfClosing
: A boolean denoting whether or not the tag should be self-closingchildren
: A string with the children to be nested inside the tag