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