# ql.io-mutable-uri

> A utility for manipulating URIs. This is primarily used by monkey patch files.

Latest version **0.8.0** (published 2012-08-16) · 0 weekly downloads

## Install

```sh
npm install ql.io-mutable-uri
pnpm add ql.io-mutable-uri
yarn add ql.io-mutable-uri
bun add ql.io-mutable-uri
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2012-08-16 |
| First published | 2011-11-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | > 0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 927 |
| Author | ql.io |
| Maintainers | s3u, shimonchayim, prabhakhar |

## Links

- npm: https://www.npmjs.com/package/ql.io-mutable-uri
- Repository: https://github.com/ql-io/ql.io
- npm.io page: https://npm.io/package/ql.io-mutable-uri

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) 1.3.3

## Recent versions

- 0.8.0 (latest) — 2012-08-16
- 0.7.0 — 2012-07-02
- 0.6.3 — 2012-05-29
- 0.6.1 — 2012-05-23
- 0.6.0 — 2012-05-21
- 0.5.0 — 2012-03-30
- 0.4.4 — 2012-03-28
- 0.4.2 — 2012-02-22
- 0.4.1 — 2012-02-16
- 0.4.0 — 2012-02-13
- 0.4.0-beta — 2012-01-17
- 0.3.0 — 2011-11-30

## README

A mutable URI parser and formatter for use by monkey patches. ql.io lets you monkey patch tables
by attaching a Node module with each table. Here is an example of how a monkey patch module could
patch the request URI.

    //
    // Patch the request URI. ql.io engine would use the returned URI.
    //
    exports['patch uri'] = function(options) {
        var statement = options.statement, uri = options.uri, params = options.params, count = 0;
        if(statement.offset && statement.limit) {
            uri.setParam('paginationInput.pageNumber', statement.offset / statement.limit);
        }
        uri.removeEmptyParams();

        count = 0
        if(params.FreeShippingOnly) {
            uri.addParam("itemFilter(" + count + ").name", 'FreeShippingOnly');
            uri.addParam("itemFilter(" + count + ").value", params.FreeShippingOnly);
            count++;
        }
        if(params.MinPrice) {
            uri.addParam("itemFilter(" + count + ").name", 'MinPrice');
            uri.addParam("itemFilter(" + count + ").value", params.MinPrice);
            count++;
        }
        return uri;
    }

---
_Source: https://npm.io/package/ql.io-mutable-uri · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
