browser-canonical-url
v1.0.0
Published
Get canonical url for browser.
Downloads
3
Maintainers
Readme
browser-canonical-url
Get canonical url for browser.
Install
$ npm install --save browser-canonical-url
Usage
var browserCanonicalUrl = require('browser-canonical-url');
// or
<script src="build/browser-canonical-url.js"></script>
browserCanonicalUrl();
//=> http://example.com/canonical
API
browserCanonicalUrl() -> ?String
Canonical url or null.
Changelog
License
MIT © sanemat