strip-mobile-url

1.0.0 • Public • Published

strip-mobile-url

Build Status

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ć

Readme

Keywords

Package Sidebar

Install

npm i strip-mobile-url

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • niksy