1.0.0 • Published 10 years ago
@segment/canonical v1.0.0
canonical
Returns the canonical URL for the page.
Installation
$ npm install @segment/canonicalExample
<html>
<head>
<link rel="canonical" href="http://example.com" />
</head>
</html>var canonical = require('canonical');
canonical(); // http://example.com1.0.0
10 years ago