1.0.0 • Published 8 years ago

@segment/canonical v1.0.0

Weekly downloads
16,184
License
SEE LICENSE IN LI...
Repository
github
Last release
8 years ago

canonical

CircleCI Codecov

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