canonical-extractor
v1.0.31
Published
Questo è l'estrattore dei canonical
Downloads
240
Readme
Canonical extracton
Questo è l'estrattore dei canonical
Per installare le dipenendenze
npm install
Richiede in input:
body= {
site: { url },
page: { path, page_content, page_headers },
}
Output di esempio
{
[
{
origin: 'tag/headers',
value: 'url',
badImplementation: boolean,
self: boolean,
classification: 'absolute/root-relative/protocol-relative/relative'
},
...
],
hasCanonical: boolean,
hasConflicts: boolean,
multipleTags: boolean,
canonicalLink: 'url Canonical',
selfCanonical: boolean,
isCompliant: boolean,
conflictsList: [
{
origin: 'tag/headers',
value: 'url conflicts',
badImplementation: boolean,
self: boolean,
classification: 'absolute/root-relative/protocol-relative/relative'
},
...
]
}
Per installarlo in altri progetti
npm i canonical-extractor