# extract-params-from-url

> Util extracting the params from an url string

Latest version **1.0.1** (published 2021-12-19) · bsd-3-clause license · 0 weekly downloads

## Install

```sh
npm install extract-params-from-url
pnpm add extract-params-from-url
yarn add extract-params-from-url
bun add extract-params-from-url
```

Provides the command `extract-params-from-url`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-12-19 |
| First published | 2021-12-19 |
| Weekly downloads | 0 |
| License | bsd-3-clause |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | cboensel |
| Maintainers | carstenboensel |
| Keywords | url, parameters, cli |

## Links

- npm: https://www.npmjs.com/package/extract-params-from-url
- Repository: https://github.com/CBoensel/extract-params-from-url
- Homepage: https://github.com/CBoensel/extract-params-from-url#readme
- Issues: https://github.com/CBoensel/extract-params-from-url/issues
- npm.io page: https://npm.io/package/extract-params-from-url

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^4.1.1
- [yargs](https://npm.io/package/yargs.md) ^16.2.0
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-12-19
- 1.0.0 — 2021-12-19

## README

# extract-params-from-url

> cli extracting the parameters from an url string.

[![test](https://github.com/CBoensel/extract-params-from-url/actions/workflows/test.yml/badge.svg)](https://github.com/CBoensel/extract-params-from-url/actions/workflows/test.yml)
[![npm version](https://img.shields.io/npm/v/extract-params-from-url.svg)](https://npmjs.com/package/extract-params-from-url)

## Overview

The cli prints parameters attached to a url as a list.

It comes in handy when to inspect communication of url-encoded web services.

The code wraps around the Web APIs [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL_API) and [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams).

## Installation

Ensure a recent [Node.js](https://nodejs.org/en/) version being installed first.

```bash
npm i -g extract-params-from-url
```

## Usage

```bash
npx extract-params-from-url "your-url-or-parameter-chain"
```

## Example

```bash
npx extract-params-from-url "https://example.com?myarg1=myval1&myarg2=myval2"
```

web service url: <span style="color:blue">https://example.com/</span>\
<span style="color:green">no duplicates found for given input</span>\
myarg1: <span style="color:blue">myval1</span>\
myarg2: <span style="color:blue">myval2</span>

---
_Source: https://npm.io/package/extract-params-from-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
