@realfavicongenerator/inject-markups
v0.4.0
Published
Inject markups created by RealFaviconGenerator into an HTML document
Downloads
2,983
Maintainers
Readme
@realfavicongenerator/inject-markups
Easily inject favicon markups generated by RealFaviconGenerator:
import { injectMarkupInHtmlHead, DefaultRemovedMarkupCssSelectors } from '@realfavicongenerator/inject-markups'
const myHtml = '...';
const myNewHtml = injectMarkupInHtmlHead(
myHtml,
[
'<link rel="icon" href="/my-favicon.png" />',
'<link rel="apple-touch-icon" href="/my-touch-icon.png" />'
],
DefaultRemovedMarkupCssSelectors
);
// myNewHtml contains the two 'link' markups above, and former favicon-related markups have been removed