JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q40135F
  • License MIT

Package Exports

  • neat-url

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (neat-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

neat-url

Cleanup URLs by removing tracking parameters.

Example

const neatUrl = require('neat-url');
let url = neatUrl({
  url: "https://www.example.com/bens-tagging?utm_source=mysite.com&utm_medium=referral&utm_campaign=url+tracking+post#Echobox=1568564590",
  includeHash: true
})
console.log("url: " + url);
// url: https://www.example.com/bens-tagging

Installation

npm install --save neat-url

License

Copyright © 2019

Licensed under the MIT license.