1.2.6 • Published 5 years ago

hearth-url-cleaner-and-hasher v1.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

hearth-url-cleaner-and-hasher

Usage

import * as urlCleaner from 'hearth-url-cleaner-and-hasher'

// To remove a query param from the URL
urlCleaner.removeQueryParam('https://abc.com?abc=abc&foo=bar', 'foo')

// To remove a query param from the URL and hash the URL at the same time
urlCleaner.removeQueryParam('https://abc.com?abc=abc&foo=bar', 'foo', {
  returnedHashedUrl: true,
})

// To hash the URL only
urlCleaner.hashURL('https://abc.com?abc=abc&foo=bar')
1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago