strip-mobile-url
v1.0.0
Published
Strip mobile URL parts and convert them to standard URLs.
Downloads
3
Readme
strip-mobile-url
Strip mobile URL parts and convert them to standard URLs.
Install
npm install strip-mobile-url --save
Usage
const stripMobileUrl = require('strip-mobile-url');
console.log(stripMobileUrl('`https://mobile.twitter.com/niksy/status/766611665244782592?utm_campaign=RSS-Feedburner-All-Partial&utm_cid=RSS-Feedburner-All-Partial&utm_medium=feed&utm_source=feedly&utm_reader=feedly&z=last&m=middle&a=first&t=upper-middle#foo'));
// https://twitter.com/niksy/status/766611665244782592?a=first&m=middle&t=upper-middle&z=last#foo
API
stripMobileUrl(url)
Returns: String
url
Type: String
URL to process.
Following URLs are processed:
m.example.com
mobile.example.com
touch.example.com
License
MIT © Ivan Nikolić